Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009939/0.0009939, allocations: 169.9 kB / 24.91 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9569/0.9569, allocations: 177.1 MB / 205.3 MB, free: 5.113 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 273.5 MB, free: 1.184 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.148e-05/2.292e-05, allocations: 6.312 kB / 273.5 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005205/0.005228, allocations: 3.997 MB / 277.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00229/0.007518, allocations: 1.075 MB / 278.5 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002555/0.007773, allocations: 11.94 kB / 278.5 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002308/0.008004, allocations: 87.19 kB / 278.6 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003821/0.008386, allocations: 194.2 kB / 278.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005483/0.008935, allocations: 235.6 kB / 279 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008305/0.009765, allocations: 0.8558 MB / 279.9 MB, free: 10.7 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002384/0.01, allocations: 122.1 kB / 280 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006569/0.01066, allocations: 471 kB / 280.5 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004174/0.01108, allocations: 287.2 kB / 280.8 MB, free: 9.824 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001082/0.01119, allocations: 80 kB / 280.8 MB, free: 9.746 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001394/0.01133, allocations: 80 kB / 280.9 MB, free: 9.668 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001246/0.01145, allocations: 159.4 kB / 281.1 MB, free: 9.512 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002382/0.01169, allocations: 235.5 kB / 281.3 MB, free: 9.281 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008376/0.01253, allocations: 0.5295 MB / 281.8 MB, free: 8.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.01253, allocations: 0 / 281.8 MB, free: 8.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.01253, allocations: 4 kB / 281.8 MB, free: 8.746 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.992e-06/0.01254, allocations: 0 / 281.8 MB, free: 8.746 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001602/0.01414, allocations: 0.875 MB / 282.7 MB, free: 7.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.01417, allocations: 12.03 kB / 282.7 MB, free: 7.828 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002247/0.0144, allocations: 72.88 kB / 282.8 MB, free: 7.758 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004386/0.01484, allocations: 283.7 kB / 283.1 MB, free: 7.453 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.962e-05/0.01488, allocations: 33.36 kB / 283.1 MB, free: 7.422 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.935e-05/0.01495, allocations: 36.38 kB / 283.1 MB, free: 7.387 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007289/0.01567, allocations: 428.4 kB / 283.6 MB, free: 6.938 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.01569, allocations: 8.062 kB / 283.6 MB, free: 6.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.348e-05/0.01573, allocations: 20.36 kB / 283.6 MB, free: 6.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.01575, allocations: 11.94 kB / 283.6 MB, free: 6.898 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000326/0.01607, allocations: 134.9 kB / 283.7 MB, free: 6.766 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0022/0.01827, allocations: 1.367 MB / 285.1 MB, free: 5.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.01948, allocations: 340.3 kB / 285.4 MB, free: 5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002405/0.01972, allocations: 121.5 kB / 285.5 MB, free: 4.879 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.947e-05/0.01976, allocations: 12.27 kB / 285.6 MB, free: 4.867 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003521/0.02011, allocations: 232.5 kB / 285.8 MB, free: 4.617 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 2.094e-06/0.02011, allocations: 0 / 285.8 MB, free: 4.617 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.004807/0.02492, allocations: 1.051 MB / 286.8 MB, free: 3.555 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.194e-05/0.02497, allocations: 89.09 kB / 286.9 MB, free: 3.449 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003281/0.0253, allocations: 339.3 kB / 287.3 MB, free: 3.105 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.399e-05/0.02534, allocations: 33.7 kB / 287.3 MB, free: 3.066 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.02547, allocations: 197.8 kB / 287.5 MB, free: 2.871 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.02558, allocations: 130.8 kB / 287.6 MB, free: 2.742 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.02574, allocations: 82 kB / 287.7 MB, free: 2.652 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.02586, allocations: 354.7 kB / 288 MB, free: 2.297 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/0.02603, allocations: 78.55 kB / 288.1 MB, free: 2.215 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001929/0.02622, allocations: 146 kB / 288.3 MB, free: 2.055 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005864/0.02681, allocations: 193.5 kB / 288.4 MB, free: 1.852 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.02681, allocations: 0 / 288.4 MB, free: 1.852 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009738/0.02778, allocations: 396.3 kB / 288.8 MB, free: 1.445 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.729e-05/0.02782, allocations: 29.7 kB / 288.9 MB, free: 1.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.02783, allocations: 4 kB / 288.9 MB, free: 1.406 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005733/0.0284, allocations: 204.6 kB / 289.1 MB, free: 1.203 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002795/0.02868, allocations: 75.89 kB / 289.1 MB, free: 1.129 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1191/0.1478, allocations: 2.02 MB / 291.2 MB, free: 24.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003599/0.1481, allocations: 65.78 kB / 291.2 MB, free: 24.15 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.847e-05/0.1482, allocations: 12.23 kB / 291.2 MB, free: 24.15 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002065/0.1484, allocations: 132.5 kB / 291.4 MB, free: 24.03 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.014e-05/0.1485, allocations: 44.98 kB / 291.4 MB, free: 24.03 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.772e-05/0.1486, allocations: 56.2 kB / 291.5 MB, free: 24.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.1486, allocations: 4.219 kB / 291.5 MB, free: 24.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1486, allocations: 1.953 kB / 291.5 MB, free: 24.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1486, allocations: 2 kB / 291.5 MB, free: 24.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003653/0.1489, allocations: 292.1 kB / 291.8 MB, free: 23.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1489, allocations: 0.7031 kB / 291.8 MB, free: 23.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002066/0.1491, allocations: 62.42 kB / 291.8 MB, free: 23.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004581/0.1496, allocations: 215 kB / 292 MB, free: 23.94 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.397e-05/0.1496, allocations: 10.16 kB / 292 MB, free: 23.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002284/0.1519, allocations: 2.019 MB / 294.1 MB, free: 22.67 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1519, allocations: 1.844 kB / 294.1 MB, free: 22.67 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/0.1532, allocations: 0.5167 MB / 294.6 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000122/0.1533, allocations: 53.28 kB / 294.6 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.266e-05/0.1533, allocations: 6.844 kB / 294.6 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.1535, allocations: 46.55 kB / 294.7 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.1536, allocations: 56.5 kB / 294.7 MB, free: 22.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/0.1537, allocations: 13.27 kB / 294.8 MB, free: 22.59 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001643/0.1538, allocations: 148.3 kB / 294.9 MB, free: 22.57 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1538, allocations: 0 / 294.9 MB, free: 22.57 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004212/0.1542, allocations: 169.2 kB / 295.1 MB, free: 22.56 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001187/0.1544, allocations: 91.84 kB / 295.2 MB, free: 22.5 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007018/0.1551, allocations: 0.5024 MB / 295.7 MB, free: 22.26 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.603e-06/0.1551, allocations: 4.406 kB / 295.7 MB, free: 22.26 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004178/0.1555, allocations: 357.9 kB / 296 MB, free: 22.12 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002507/0.1557, allocations: 86.11 kB / 296.1 MB, free: 22.11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001624/0.1574, allocations: 0.9651 MB / 297.1 MB, free: 21.68 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001165/0.1575, allocations: 121.3 kB / 297.2 MB, free: 21.6 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001484/0.1576, allocations: 43.14 kB / 297.2 MB, free: 21.59 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000201/0.1578, allocations: 130.2 kB / 297.3 MB, free: 21.54 MB / 266.7 MB Notification: Performance of SimCode: time 7.52e-07/0.1578, allocations: 0 / 297.3 MB, free: 21.54 MB / 266.7 MB Notification: Performance of Templates: time 0.01428/0.1721, allocations: 13.29 MB / 310.6 MB, free: 14.46 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.180752439890057]