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.001359/0.001359, allocations: 79.7 kB / 20.68 MB, free: 1.027 MB / 14.72 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.00142/0.00142, allocations: 148 kB / 23.93 MB, free: 4.176 MB / 14.72 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.411/1.411, allocations: 173.3 MB / 200.4 MB, free: 12.87 MB / 190.1 MB " [Timeout remaining time 178] 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 2.004e-06/2.004e-06, allocations: 1.531 kB / 318.9 MB, free: 3.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.205e-05/2.406e-05, allocations: 2.281 kB / 318.9 MB, free: 3.535 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004069/0.004093, allocations: 3.659 MB / 322.6 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.005814, allocations: 0.9895 MB / 323.6 MB, free: 368 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002158/0.00603, allocations: 10 kB / 323.6 MB, free: 364 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000216/0.006246, allocations: 83.23 kB / 323.7 MB, free: 316 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003147/0.006561, allocations: 205.9 kB / 323.9 MB, free: 156 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004986/0.007059, allocations: 214.6 kB / 324.1 MB, free: 24 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001246/0.008305, allocations: 0.8358 MB / 324.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003252/0.00863, allocations: 113.1 kB / 325 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008061/0.009436, allocations: 453.5 kB / 325.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004867/0.009923, allocations: 285.5 kB / 325.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000126/0.01005, allocations: 81.06 kB / 325.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001379/0.01019, allocations: 81.72 kB / 325.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000199/0.01039, allocations: 163.4 kB / 326.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003303/0.01072, allocations: 242.6 kB / 326.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001188/0.0119, allocations: 0.8943 MB / 327.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.01191, allocations: 0 / 327.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.01191, allocations: 1.5 kB / 327.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.01192, allocations: 0.75 kB / 327.2 MB, free: 14.59 MB / 302.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.002883/0.01481, allocations: 0.9518 MB / 328.2 MB, free: 14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.01485, allocations: 11.23 kB / 328.2 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001528/0.015, allocations: 62.41 kB / 328.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006516/0.01565, allocations: 361.3 kB / 328.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.211e-05/0.01569, allocations: 29.16 kB / 328.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.082e-05/0.01578, allocations: 37.38 kB / 328.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001601/0.01738, allocations: 0.6214 MB / 329.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.0174, allocations: 192 / 329.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.893e-05/0.01746, allocations: 17.44 kB / 329.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.01747, allocations: 16.81 kB / 329.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002099/0.01957, allocations: 0.6172 MB / 329.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003904/0.02348, allocations: 1.888 MB / 331.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004144/0.02762, allocations: 0.8045 MB / 332.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001134/0.02875, allocations: 365.5 kB / 333 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.321e-05/0.0288, allocations: 8.125 kB / 333 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001238/0.03004, allocations: 454.3 kB / 333.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.104e-06/0.03004, allocations: 0 / 333.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01552/0.04556, allocations: 2.2 MB / 335.6 MB, free: 9.738 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.449e-05/0.04564, allocations: 86.17 kB / 335.7 MB, free: 9.641 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006363/0.04628, allocations: 396 kB / 336.1 MB, free: 9.391 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.29e-05/0.04636, allocations: 33.23 kB / 336.1 MB, free: 9.355 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003629/0.04672, allocations: 248 kB / 336.4 MB, free: 9.133 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.04688, allocations: 126.3 kB / 336.5 MB, free: 9.023 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001845/0.04707, allocations: 73.42 kB / 336.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000231/0.0473, allocations: 356.6 kB / 336.9 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/0.04833, allocations: 313.1 kB / 337.2 MB, free: 8.453 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001059/0.04939, allocations: 397.6 kB / 337.6 MB, free: 8.203 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001928/0.05132, allocations: 0.5761 MB / 338.2 MB, free: 7.898 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.05132, allocations: 3.938 kB / 338.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004277/0.0556, allocations: 1.006 MB / 339.2 MB, free: 7.062 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.607e-05/0.05566, allocations: 37.69 kB / 339.2 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.05566, allocations: 0 / 339.2 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/0.05702, allocations: 392.5 kB / 339.6 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005245/0.05755, allocations: 91.84 kB / 339.7 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009106/0.06665, allocations: 3.472 MB / 343.2 MB, free: 2.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008041/0.06746, allocations: 87.75 kB / 343.3 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-05/0.06753, allocations: 15.98 kB / 343.3 MB, free: 2.871 MB / 302.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.0003252/0.06785, allocations: 173.8 kB / 343.4 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.06796, allocations: 51.66 kB / 343.5 MB, free: 2.641 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001345/0.0681, allocations: 56.36 kB / 343.5 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.0681, allocations: 4 kB / 343.5 MB, free: 2.578 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.06811, allocations: 4 kB / 343.6 MB, free: 2.574 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.06811, allocations: 0 / 343.6 MB, free: 2.574 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006618/0.06877, allocations: 433.3 kB / 344 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.06878, allocations: 0 / 344 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005155/0.06929, allocations: 79.86 kB / 344.1 MB, free: 2.043 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001216/0.07051, allocations: 396.6 kB / 344.4 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.274e-05/0.07056, allocations: 11.94 kB / 344.5 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009043/0.0796, allocations: 3.457 MB / 347.9 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.07961, allocations: 0 / 347.9 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006502/0.08611, allocations: 1.454 MB / 349.4 MB, free: 12.61 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002806/0.08639, allocations: 103.7 kB / 349.5 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.08649, allocations: 11.98 kB / 349.5 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006447/0.08714, allocations: 71.91 kB / 349.5 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/0.0873, allocations: 51.91 kB / 349.6 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.412e-05/0.08734, allocations: 12 kB / 349.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003815/0.08773, allocations: 275.2 kB / 349.9 MB, free: 12.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.08773, allocations: 4 kB / 349.9 MB, free: 12.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007312/0.08846, allocations: 175.7 kB / 350.1 MB, free: 11.92 MB / 318.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.0002064/0.08866, allocations: 114.5 kB / 350.2 MB, free: 11.8 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003071/0.09173, allocations: 0.9283 MB / 351.1 MB, free: 10.84 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.09174, allocations: 0 / 351.1 MB, free: 10.84 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001704/0.09344, allocations: 0.5415 MB / 351.6 MB, free: 10.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004919/0.09393, allocations: 85.28 kB / 351.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003565/0.0975, allocations: 1.127 MB / 352.8 MB, free: 9.051 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.0978, allocations: 236.8 kB / 353.1 MB, free: 8.793 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002342/0.09804, allocations: 39.27 kB / 353.1 MB, free: 8.754 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.09816, allocations: 28.5 kB / 353.1 MB, free: 8.727 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.09817, allocations: 4 kB / 353.1 MB, free: 8.723 MB / 318.1 MB Notification: Performance of Templates: time 0.02442/0.1226, allocations: 13.1 MB / 366.2 MB, free: 11.73 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.527427393943071]