Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001022/0.001022, allocations: 84.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001092/0.001092, allocations: 160.9 kB / 24.91 MB, free: 9.195 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9878/0.9878, allocations: 177 MB / 205.2 MB, free: 5.457 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.043e-06/2.043e-06, allocations: 0 / 273.4 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.234e-05/1.439e-05, allocations: 2.312 kB / 273.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003477/0.003491, allocations: 4.001 MB / 277.4 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001758/0.005249, allocations: 1.079 MB / 278.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002016/0.00545, allocations: 11.88 kB / 278.5 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001833/0.005634, allocations: 87.14 kB / 278.6 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002646/0.005898, allocations: 198.3 kB / 278.8 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004704/0.006369, allocations: 239.5 kB / 279 MB, free: 11.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006345/0.007003, allocations: 0.852 MB / 279.9 MB, free: 10.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.007187, allocations: 118.1 kB / 280 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005443/0.007731, allocations: 475 kB / 280.4 MB, free: 10.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002785/0.00801, allocations: 287.2 kB / 280.7 MB, free: 9.855 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.227e-05/0.008082, allocations: 76 kB / 280.8 MB, free: 9.781 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.697e-05/0.008179, allocations: 80 kB / 280.9 MB, free: 9.703 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.04e-05/0.008269, allocations: 159.5 kB / 281 MB, free: 9.547 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001629/0.008432, allocations: 239.4 kB / 281.3 MB, free: 9.312 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004512/0.008883, allocations: 0.5257 MB / 281.8 MB, free: 8.785 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.803e-06/0.008885, allocations: 0 / 281.8 MB, free: 8.785 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.008886, allocations: 0 / 281.8 MB, free: 8.785 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.008892, allocations: 0 / 281.8 MB, free: 8.785 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.001143/0.01004, allocations: 0.8828 MB / 282.7 MB, free: 7.871 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.065e-05/0.01007, allocations: 11.98 kB / 282.7 MB, free: 7.859 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001515/0.01022, allocations: 76.86 kB / 282.7 MB, free: 7.785 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003186/0.01054, allocations: 275.7 kB / 283 MB, free: 7.488 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.387e-05/0.01057, allocations: 33.38 kB / 283 MB, free: 7.457 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.364e-05/0.01062, allocations: 36.38 kB / 283.1 MB, free: 7.422 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005078/0.01113, allocations: 444.3 kB / 283.5 MB, free: 6.953 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.01114, allocations: 192 / 283.5 MB, free: 6.953 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.042e-05/0.01117, allocations: 16.38 kB / 283.5 MB, free: 6.938 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.01118, allocations: 11.94 kB / 283.5 MB, free: 6.926 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002047/0.01139, allocations: 134.8 kB / 283.7 MB, free: 6.793 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001491/0.01288, allocations: 1.371 MB / 285 MB, free: 5.363 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007884/0.01367, allocations: 348 kB / 285.4 MB, free: 5.016 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.01383, allocations: 117.5 kB / 285.5 MB, free: 4.898 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.01e-05/0.01386, allocations: 12.31 kB / 285.5 MB, free: 4.887 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002369/0.01409, allocations: 228.5 kB / 285.7 MB, free: 4.641 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.844e-06/0.01409, allocations: 0 / 285.7 MB, free: 4.641 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.002914/0.01701, allocations: 1.059 MB / 286.8 MB, free: 3.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.866e-05/0.01705, allocations: 81.11 kB / 286.9 MB, free: 3.473 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001997/0.01725, allocations: 347.3 kB / 287.2 MB, free: 3.121 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/0.01728, allocations: 33.7 kB / 287.2 MB, free: 3.082 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.268e-05/0.01736, allocations: 189.8 kB / 287.4 MB, free: 2.895 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.321e-05/0.01743, allocations: 138.8 kB / 287.6 MB, free: 2.758 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.052e-05/0.01752, allocations: 74.03 kB / 287.6 MB, free: 2.676 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.966e-05/0.01761, allocations: 358.7 kB / 288 MB, free: 2.316 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.01772, allocations: 78.56 kB / 288.1 MB, free: 2.234 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.01784, allocations: 150 kB / 288.2 MB, free: 2.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001974/0.01803, allocations: 193.5 kB / 288.4 MB, free: 1.867 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.01804, allocations: 0 / 288.4 MB, free: 1.867 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005891/0.01863, allocations: 396.3 kB / 288.8 MB, free: 1.461 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.01865, allocations: 37.69 kB / 288.8 MB, free: 1.418 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.01866, allocations: 0 / 288.8 MB, free: 1.418 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003804/0.01904, allocations: 204.6 kB / 289 MB, free: 1.215 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001677/0.01921, allocations: 71.89 kB / 289.1 MB, free: 1.145 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.114/0.1332, allocations: 2.017 MB / 291.1 MB, free: 24.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003564/0.1335, allocations: 65.89 kB / 291.2 MB, free: 24.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.974e-05/0.1336, allocations: 10.31 kB / 291.2 MB, free: 24.84 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.0001559/0.1337, allocations: 136.3 kB / 291.3 MB, free: 24.72 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.625e-05/0.1338, allocations: 40.95 kB / 291.4 MB, free: 24.72 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.901e-05/0.1339, allocations: 62.42 kB / 291.4 MB, free: 24.71 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.1339, allocations: 6.047 kB / 291.4 MB, free: 24.71 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-06/0.1339, allocations: 0.625 kB / 291.4 MB, free: 24.71 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1339, allocations: 2.906 kB / 291.4 MB, free: 24.71 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003565/0.1342, allocations: 289.6 kB / 291.7 MB, free: 24.64 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1342, allocations: 0 / 291.7 MB, free: 24.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002277/0.1345, allocations: 65.56 kB / 291.8 MB, free: 24.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004638/0.1349, allocations: 206.3 kB / 292 MB, free: 24.63 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.259e-05/0.135, allocations: 13.84 kB / 292 MB, free: 24.63 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002461/0.1374, allocations: 2.023 MB / 294 MB, free: 23.37 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1374, allocations: 3.188 kB / 294 MB, free: 23.37 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001383/0.1388, allocations: 0.5142 MB / 294.5 MB, free: 23.29 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001386/0.1389, allocations: 49.06 kB / 294.6 MB, free: 23.29 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.47e-05/0.139, allocations: 11.66 kB / 294.6 MB, free: 23.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.1392, allocations: 46.2 kB / 294.6 MB, free: 23.29 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/0.1393, allocations: 51.12 kB / 294.7 MB, free: 23.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.1394, allocations: 11.44 kB / 294.7 MB, free: 23.29 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001614/0.1395, allocations: 146.6 kB / 294.8 MB, free: 23.27 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1395, allocations: 0 / 294.8 MB, free: 23.27 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005181/0.14, allocations: 171.6 kB / 295 MB, free: 23.26 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.0001184/0.1402, allocations: 93.2 kB / 295.1 MB, free: 23.2 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007399/0.1409, allocations: 0.5028 MB / 295.6 MB, free: 22.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.343e-06/0.1409, allocations: 4.781 kB / 295.6 MB, free: 22.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004728/0.1414, allocations: 349.9 kB / 296 MB, free: 22.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002875/0.1417, allocations: 97.8 kB / 296 MB, free: 22.81 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001779/0.1435, allocations: 0.9574 MB / 297 MB, free: 22.39 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001001/0.1436, allocations: 120.1 kB / 297.1 MB, free: 22.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001718/0.1437, allocations: 43.92 kB / 297.2 MB, free: 22.3 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002201/0.1439, allocations: 126.3 kB / 297.3 MB, free: 22.25 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/0.1439, allocations: 0 / 297.3 MB, free: 22.25 MB / 266.7 MB Notification: Performance of Templates: time 0.01625/0.1602, allocations: 13.28 MB / 310.6 MB, free: 14.98 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.1746210758574307]