Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") translateModel(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002563/0.002564, allocations: 177.6 kB / 17.41 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.892/3.892, allocations: 205.4 MB / 223.6 MB, free: 8.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001198/0.001198, allocations: 100.1 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006258/0.0006259, allocations: 8 kB / 328.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6157/0.6164, allocations: 47.57 MB / 375.7 MB, free: 45.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2649/0.8814, allocations: 79.36 MB / 455.1 MB, free: 1.277 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0006334/0.8822, allocations: 71.95 kB / 455.1 MB, free: 1.207 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02376/0.906, allocations: 4.79 MB / 459.9 MB, free: 12.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.099e-06/0.9062, allocations: 0 / 459.9 MB, free: 12.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.969e-05/0.9062, allocations: 4 kB / 459.9 MB, free: 12.39 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.002066/0.9083, allocations: 0.6419 MB / 460.6 MB, free: 11.69 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.313e-05/0.9084, allocations: 8.031 kB / 460.6 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001343/0.9085, allocations: 32.56 kB / 460.6 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006184/0.9092, allocations: 272.5 kB / 460.9 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.764e-05/0.9092, allocations: 16.81 kB / 460.9 MB, free: 11.33 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.201e-05/0.9093, allocations: 20.31 kB / 460.9 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.9107, allocations: 330.3 kB / 461.2 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.526e-05/0.9108, allocations: 192 / 461.2 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.914e-05/0.9109, allocations: 15.88 kB / 461.3 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.945e-05/0.9109, allocations: 8 kB / 461.3 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.9124, allocations: 333.5 kB / 461.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003734/0.9161, allocations: 1.016 MB / 462.6 MB, free: 9.543 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004597/0.9208, allocations: 0.6153 MB / 463.2 MB, free: 8.918 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005349/0.9262, allocations: 239.5 kB / 463.5 MB, free: 8.684 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.516e-05/0.9263, allocations: 0 / 463.5 MB, free: 8.684 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001089/0.9274, allocations: 265.9 kB / 463.7 MB, free: 8.406 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 2.845e-06/0.9274, allocations: 0 / 463.7 MB, free: 8.406 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.002494/0.9299, allocations: 0.5261 MB / 464.2 MB, free: 7.875 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001884/0.9301, allocations: 106.8 kB / 464.4 MB, free: 7.746 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005785/0.9307, allocations: 233 kB / 464.6 MB, free: 7.508 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.824e-05/0.9308, allocations: 29.7 kB / 464.6 MB, free: 7.473 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000337/0.9312, allocations: 160.2 kB / 464.8 MB, free: 7.312 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/0.9314, allocations: 71 kB / 464.8 MB, free: 7.242 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.418e-05/0.9314, allocations: 8 kB / 464.8 MB, free: 7.234 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000319/0.9318, allocations: 330.8 kB / 465.2 MB, free: 6.902 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007454/0.9325, allocations: 164.3 kB / 465.3 MB, free: 6.738 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008103/0.9333, allocations: 205.1 kB / 465.5 MB, free: 6.527 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001539/0.9349, allocations: 369.5 kB / 465.9 MB, free: 6.152 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.9349, allocations: 0 / 465.9 MB, free: 6.152 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001936/0.9369, allocations: 442.8 kB / 466.3 MB, free: 5.707 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001346/0.937, allocations: 37.7 kB / 466.4 MB, free: 5.664 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.438e-05/0.9371, allocations: 3.938 kB / 466.4 MB, free: 5.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.724e-05/0.9371, allocations: 11.92 kB / 466.4 MB, free: 5.648 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002944/0.9401, allocations: 323.7 kB / 466.7 MB, free: 5.332 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01346/0.9536, allocations: 3.243 MB / 469.9 MB, free: 1.824 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008754/0.9545, allocations: 67.89 kB / 470 MB, free: 1.758 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.012e-05/0.9546, allocations: 12 kB / 470 MB, free: 1.746 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004502/0.9551, allocations: 138.5 kB / 470.1 MB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.9552, allocations: 23.72 kB / 470.2 MB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.009e-05/0.9553, allocations: 26.17 kB / 470.2 MB, free: 1.555 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.9553, allocations: 4 kB / 470.2 MB, free: 1.551 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.9554, allocations: 3.938 kB / 470.2 MB, free: 1.547 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.9554, allocations: 0 / 470.2 MB, free: 1.547 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003175/0.9586, allocations: 0.9529 MB / 471.2 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/0.9586, allocations: 7.938 kB / 471.2 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003082/0.9617, allocations: 331.7 kB / 471.5 MB, free: 204 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-05/0.9618, allocations: 0 / 471.5 MB, free: 204 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.985e-05/0.9619, allocations: 11.92 kB / 471.5 MB, free: 192 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008747/0.9706, allocations: 3.255 MB / 474.8 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/0.9707, allocations: 4.062 kB / 474.8 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003195/0.9739, allocations: 0.6631 MB / 475.4 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002699/0.9743, allocations: 104.8 kB / 475.5 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.182e-05/0.9744, allocations: 7.938 kB / 475.5 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005734/0.9749, allocations: 56 kB / 475.6 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000192/0.9751, allocations: 31.91 kB / 475.6 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-05/0.9752, allocations: 7.984 kB / 475.6 MB, free: 11.76 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003312/0.9755, allocations: 168.5 kB / 475.8 MB, free: 11.6 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.9756, allocations: 4 kB / 475.8 MB, free: 11.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008805/0.9764, allocations: 87.84 kB / 475.9 MB, free: 11.51 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (thyristor_v4_1.vControl,inductor.i) * Number of discrete variables: 3 ($whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003197/0.9768, allocations: 103.2 kB / 476 MB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008823/0.9856, allocations: 0.6646 MB / 476.6 MB, free: 10.72 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.608e-05/0.9857, allocations: 4.062 kB / 476.6 MB, free: 10.71 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003888/0.9896, allocations: 459.7 kB / 477.1 MB, free: 10.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.9908, allocations: 52.28 kB / 477.1 MB, free: 10.21 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003649/0.9945, allocations: 0.8261 MB / 478 MB, free: 9.348 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007208/0.9953, allocations: 0.7521 MB / 478.7 MB, free: 8.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001711/0.9955, allocations: 19.44 kB / 478.7 MB, free: 8.551 MB / 362.7 MB Notification: Performance of SimCode: time 1.693e-06/0.9955, allocations: 0 / 478.7 MB, free: 8.551 MB / 362.7 MB Notification: Performance of Templates: time 0.01582/1.011, allocations: 5.339 MB / 484.1 MB, free: 3.215 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ThyristorBehaviourTest/ThyristorBehaviourTest.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches