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.001739/0.001739, allocations: 74.27 kB / 21.24 MB, free: 0.5547 MB / 14.72 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.002107/0.002107, allocations: 159.4 kB / 24.5 MB, free: 3.715 MB / 14.72 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 1.423/1.423, allocations: 177.2 MB / 204.9 MB, free: 8.996 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001522/0.001522, allocations: 51.33 kB / 325.6 MB, free: 248 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09325/0.09477, allocations: 53.35 MB / 378.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005611/0.1004, allocations: 3.699 MB / 382.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002061/0.1024, allocations: 1.028 MB / 383.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002898/0.1027, allocations: 7.938 kB / 383.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002534/0.103, allocations: 87.14 kB / 383.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005067/0.1035, allocations: 194.4 kB / 383.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006001/0.1041, allocations: 235.6 kB / 384.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009087/0.105, allocations: 0.8172 MB / 385 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002501/0.1052, allocations: 117.5 kB / 385.1 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005042/0.1058, allocations: 323 kB / 385.4 MB, free: 9.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004852/0.1062, allocations: 318.6 kB / 385.7 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001296/0.1064, allocations: 84 kB / 385.8 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001648/0.1065, allocations: 88 kB / 385.9 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001622/0.1067, allocations: 167.4 kB / 386.1 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003492/0.107, allocations: 282.8 kB / 386.3 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008834/0.1079, allocations: 0.8602 MB / 387.2 MB, free: 7.305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.1079, allocations: 0 / 387.2 MB, free: 7.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1079, allocations: 0 / 387.2 MB, free: 7.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.448e-05/0.1079, allocations: 0 / 387.2 MB, free: 7.305 MB / 350.1 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.002754/0.1107, allocations: 0.9779 MB / 388.2 MB, free: 6.289 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.1107, allocations: 16.03 kB / 388.2 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002473/0.111, allocations: 72.55 kB / 388.3 MB, free: 6.203 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006127/0.1116, allocations: 368.3 kB / 388.6 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.387e-05/0.1116, allocations: 33.36 kB / 388.6 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.62e-05/0.1117, allocations: 40.38 kB / 388.7 MB, free: 5.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.1132, allocations: 0.6283 MB / 389.3 MB, free: 5.086 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.1133, allocations: 7.938 kB / 389.3 MB, free: 5.078 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.109e-05/0.1133, allocations: 15.98 kB / 389.3 MB, free: 5.062 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.1133, allocations: 8 kB / 389.3 MB, free: 5.055 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002059/0.1154, allocations: 0.6362 MB / 390 MB, free: 4.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003684/0.1191, allocations: 1.901 MB / 391.9 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003995/0.1231, allocations: 0.8384 MB / 392.7 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/0.1241, allocations: 365.3 kB / 393.1 MB, free: 1.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.824e-05/0.1242, allocations: 12.33 kB / 393.1 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001181/0.1254, allocations: 463.3 kB / 393.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.623e-06/0.1254, allocations: 0 / 393.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01467/0.14, allocations: 2.309 MB / 395.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.904e-05/0.1401, allocations: 81.11 kB / 395.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004568/0.1405, allocations: 393.7 kB / 396.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.042e-05/0.1406, allocations: 33.7 kB / 396.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001886/0.1408, allocations: 240.8 kB / 396.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/0.1409, allocations: 146.8 kB / 396.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.1411, allocations: 70.06 kB / 396.8 MB, free: 13.44 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.1413, allocations: 358.7 kB / 397.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001044/0.1423, allocations: 326.4 kB / 397.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.1434, allocations: 389.9 kB / 397.8 MB, free: 12.35 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001949/0.1453, allocations: 0.5991 MB / 398.4 MB, free: 11.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1453, allocations: 3.938 kB / 398.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003759/0.1491, allocations: 1.023 MB / 399.5 MB, free: 10.69 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.027e-05/0.1491, allocations: 33.7 kB / 399.5 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.1491, allocations: 0 / 399.5 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00133/0.1505, allocations: 443.4 kB / 399.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005017/0.151, allocations: 83.86 kB / 400 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008844/0.1598, allocations: 3.617 MB / 403.6 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006548/0.1605, allocations: 91.84 kB / 403.7 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.269e-05/0.1605, allocations: 15.98 kB / 403.7 MB, free: 6.316 MB / 366.1 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.0002624/0.1608, allocations: 182 kB / 403.9 MB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.31e-05/0.1609, allocations: 43.72 kB / 404 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001355/0.161, allocations: 60.41 kB / 404 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.161, allocations: 4 kB / 404 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.161, allocations: 0 / 404 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.161, allocations: 4 kB / 404 MB, free: 6.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006047/0.1616, allocations: 429.4 kB / 404.4 MB, free: 5.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.1616, allocations: 3.938 kB / 404.5 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005019/0.1621, allocations: 79.86 kB / 404.5 MB, free: 5.488 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001263/0.1634, allocations: 444.5 kB / 405 MB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.386e-05/0.1634, allocations: 8 kB / 405 MB, free: 5.043 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008646/0.1721, allocations: 3.605 MB / 408.6 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1721, allocations: 0 / 408.6 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006155/0.1782, allocations: 1.5 MB / 410.1 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002449/0.1785, allocations: 107.6 kB / 410.2 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.152e-05/0.1786, allocations: 8 kB / 410.2 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007127/0.1793, allocations: 71.91 kB / 410.3 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.1794, allocations: 51.91 kB / 410.3 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.333e-05/0.1794, allocations: 15.98 kB / 410.3 MB, free: 15.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003315/0.1798, allocations: 283.1 kB / 410.6 MB, free: 15.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1798, allocations: 0 / 410.6 MB, free: 15.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006953/0.1805, allocations: 183.8 kB / 410.8 MB, free: 15.11 MB / 382.1 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.0001992/0.1807, allocations: 99.25 kB / 410.9 MB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003001/0.1837, allocations: 0.9752 MB / 411.9 MB, free: 14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1837, allocations: 4 kB / 411.9 MB, free: 13.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001749/0.1854, allocations: 0.5804 MB / 412.4 MB, free: 13.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004226/0.1859, allocations: 81.78 kB / 412.5 MB, free: 13.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003524/0.1894, allocations: 1.26 MB / 413.8 MB, free: 12.03 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002873/0.1897, allocations: 240.8 kB / 414 MB, free: 11.76 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001938/0.1899, allocations: 39.3 kB / 414.1 MB, free: 11.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.19, allocations: 40.48 kB / 414.1 MB, free: 11.68 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.19, allocations: 0 / 414.1 MB, free: 11.68 MB / 382.1 MB Notification: Performance of Templates: time 0.02297/0.2129, allocations: 13.42 MB / 427.5 MB, free: 14.38 MB / 398.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.596192794968374]