Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009464/0.0009464, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 142.1 kB / 24.97 MB, free: 8.316 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1/1, allocations: 173.3 MB / 201.5 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 268.1 MB, free: 6.723 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.693e-05/2.863e-05, allocations: 6.25 kB / 268.1 MB, free: 6.715 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00483/0.004859, allocations: 3.984 MB / 272.1 MB, free: 2.711 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00198/0.006839, allocations: 0.9971 MB / 273.1 MB, free: 1.707 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002638/0.007103, allocations: 11.94 kB / 273.1 MB, free: 1.695 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000203/0.007306, allocations: 87.08 kB / 273.2 MB, free: 1.609 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003474/0.007653, allocations: 194.3 kB / 273.3 MB, free: 1.418 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004982/0.008152, allocations: 227.5 kB / 273.6 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007705/0.008922, allocations: 0.8248 MB / 274.4 MB, free: 376 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.00914, allocations: 121.4 kB / 274.5 MB, free: 248 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005492/0.009689, allocations: 455.1 kB / 275 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003396/0.01003, allocations: 287.3 kB / 275.2 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.605e-05/0.01011, allocations: 84 kB / 275.3 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.6e-05/0.01019, allocations: 87.94 kB / 275.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.903e-05/0.01028, allocations: 155.5 kB / 275.6 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003561/0.01064, allocations: 243.4 kB / 275.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004781/0.01111, allocations: 0.5295 MB / 276.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.01112, allocations: 4 kB / 276.3 MB, free: 14.42 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.01112, allocations: 0 / 276.3 MB, free: 14.42 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.335e-06/0.01113, allocations: 0 / 276.3 MB, free: 14.42 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.001386/0.01251, allocations: 1.004 MB / 277.3 MB, free: 13.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.01255, allocations: 12.92 kB / 277.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/0.01269, allocations: 88.56 kB / 277.4 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004097/0.0131, allocations: 358.5 kB / 277.8 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.27e-05/0.01313, allocations: 29.38 kB / 277.8 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.518e-05/0.01319, allocations: 36.38 kB / 277.8 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006879/0.01388, allocations: 485.3 kB / 278.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.01389, allocations: 192 / 278.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.514e-05/0.01392, allocations: 16.38 kB / 278.3 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.01393, allocations: 11.94 kB / 278.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004375/0.01437, allocations: 205.8 kB / 278.5 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002252/0.01662, allocations: 1.961 MB / 280.5 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.0181, allocations: 448.3 kB / 280.9 MB, free: 9.586 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002807/0.01838, allocations: 170.9 kB / 281.1 MB, free: 9.418 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-05/0.01841, allocations: 8.328 kB / 281.1 MB, free: 9.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004244/0.01883, allocations: 251.8 kB / 281.4 MB, free: 9.137 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.833e-06/0.01883, allocations: 0 / 281.4 MB, free: 9.137 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.005239/0.02407, allocations: 1.414 MB / 282.8 MB, free: 7.711 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/0.02413, allocations: 89.09 kB / 282.9 MB, free: 7.605 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003141/0.02444, allocations: 402.7 kB / 283.3 MB, free: 7.191 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.85e-05/0.02448, allocations: 33.7 kB / 283.3 MB, free: 7.152 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.02462, allocations: 283.5 kB / 283.6 MB, free: 6.871 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.388e-05/0.02471, allocations: 138.8 kB / 283.7 MB, free: 6.734 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.02482, allocations: 75.72 kB / 283.8 MB, free: 6.648 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.02496, allocations: 0.5235 MB / 284.3 MB, free: 6.113 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002008/0.02516, allocations: 106.5 kB / 284.4 MB, free: 6.004 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.02538, allocations: 194.3 kB / 284.6 MB, free: 5.789 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003514/0.02573, allocations: 211.6 kB / 284.8 MB, free: 5.566 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.02573, allocations: 7.938 kB / 284.8 MB, free: 5.559 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001088/0.02682, allocations: 0.5264 MB / 285.3 MB, free: 5.012 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.065e-05/0.02685, allocations: 37.69 kB / 285.4 MB, free: 4.969 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.02686, allocations: 0 / 285.4 MB, free: 4.969 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005171/0.02738, allocations: 246.8 kB / 285.6 MB, free: 4.727 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002072/0.02758, allocations: 79.89 kB / 285.7 MB, free: 4.648 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003735/0.03132, allocations: 2.859 MB / 288.5 MB, free: 1.672 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.03157, allocations: 67.73 kB / 288.6 MB, free: 1.605 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.759e-05/0.03159, allocations: 15.98 kB / 288.6 MB, free: 1.59 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.0001422/0.03174, allocations: 184.5 kB / 288.8 MB, free: 1.398 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.107e-05/0.03181, allocations: 63.66 kB / 288.9 MB, free: 1.336 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.248e-05/0.03187, allocations: 60.39 kB / 288.9 MB, free: 1.277 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.03187, allocations: 4 kB / 288.9 MB, free: 1.273 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.03188, allocations: 0 / 288.9 MB, free: 1.273 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.03188, allocations: 0 / 288.9 MB, free: 1.273 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003589/0.03224, allocations: 388.6 kB / 289.3 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.03224, allocations: 0 / 289.3 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001941/0.03244, allocations: 67.89 kB / 289.4 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004446/0.03288, allocations: 238.4 kB / 289.6 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.196e-05/0.03291, allocations: 11.94 kB / 289.6 MB, free: 0.543 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1106/0.1435, allocations: 2.843 MB / 292.5 MB, free: 30.76 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.1435, allocations: 5.422 kB / 292.5 MB, free: 30.76 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002055/0.1456, allocations: 0.7041 MB / 293.2 MB, free: 30.66 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000177/0.1458, allocations: 104.6 kB / 293.3 MB, free: 30.64 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.653e-05/0.1458, allocations: 12.33 kB / 293.3 MB, free: 30.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.1461, allocations: 43.64 kB / 293.3 MB, free: 30.64 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.1462, allocations: 58.67 kB / 293.4 MB, free: 30.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.732e-05/0.1462, allocations: 13.22 kB / 293.4 MB, free: 30.64 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002161/0.1464, allocations: 282.1 kB / 293.7 MB, free: 30.52 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1464, allocations: 0 / 293.7 MB, free: 30.52 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004985/0.1469, allocations: 186 kB / 293.9 MB, free: 30.5 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.0001283/0.1471, allocations: 109.6 kB / 294 MB, free: 30.42 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009408/0.148, allocations: 0.5992 MB / 294.6 MB, free: 30.06 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.148, allocations: 0 / 294.6 MB, free: 30.06 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005392/0.1486, allocations: 437.3 kB / 295 MB, free: 29.8 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.1489, allocations: 87.89 kB / 295.1 MB, free: 29.78 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/0.1508, allocations: 0.9753 MB / 296.1 MB, free: 29.28 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001122/0.1509, allocations: 119.2 kB / 296.2 MB, free: 29.21 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001505/0.1511, allocations: 40.22 kB / 296.2 MB, free: 29.2 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.646e-05/0.1512, allocations: 34.09 kB / 296.2 MB, free: 29.18 MB / 266.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1512, allocations: 0 / 296.2 MB, free: 29.18 MB / 266.7 MB Notification: Performance of Templates: time 0.01589/0.1671, allocations: 13.73 MB / 310 MB, free: 21.05 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.9591534028295428]