Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.001249/0.001249, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001442/0.001442, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.501/1.501, allocations: 230.6 MB / 257.5 MB, free: 7.973 MB / 206.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.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 51.92 kB / 378.3 MB, free: 2.586 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2586, allocations: 53.36 MB / 431.6 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004677/0.2632, allocations: 2.965 MB / 434.6 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001489/0.2647, allocations: 0.814 MB / 435.4 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001576/0.2649, allocations: 7.938 kB / 435.4 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001714/0.2651, allocations: 47.5 kB / 435.5 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002089/0.2653, allocations: 99.12 kB / 435.6 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003547/0.2656, allocations: 123.8 kB / 435.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000465/0.2661, allocations: 410.3 kB / 436.1 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002013/0.2663, allocations: 91.67 kB / 436.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002587/0.2665, allocations: 155.5 kB / 436.3 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000255/0.2668, allocations: 167.2 kB / 436.5 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.353e-05/0.2668, allocations: 36 kB / 436.5 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.416e-05/0.2669, allocations: 40 kB / 436.6 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.043e-05/0.267, allocations: 75.75 kB / 436.6 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001851/0.2672, allocations: 187.1 kB / 436.8 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005124/0.2677, allocations: 443.6 kB / 437.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2677, allocations: 0 / 437.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2677, allocations: 0 / 437.3 MB, free: 1.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.2677, allocations: 0 / 437.3 MB, free: 1.25 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001051/0.2688, allocations: 0.5567 MB / 437.8 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.2688, allocations: 8.031 kB / 437.8 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001738/0.269, allocations: 48.69 kB / 437.9 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004119/0.2694, allocations: 238.8 kB / 438.1 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.437e-05/0.2694, allocations: 16.88 kB / 438.1 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.361e-05/0.2695, allocations: 24.38 kB / 438.1 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005137/0.27, allocations: 295.9 kB / 438.4 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.27, allocations: 0 / 438.4 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.982e-05/0.27, allocations: 8.078 kB / 438.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.27, allocations: 4 kB / 438.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004015/0.2704, allocations: 205.9 kB / 438.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.2722, allocations: 1.113 MB / 439.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004923/0.2727, allocations: 194.6 kB / 439.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002933/0.273, allocations: 120.8 kB / 440.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.273, allocations: 4 kB / 440.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002939/0.2733, allocations: 170.6 kB / 440.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.442e-06/0.2733, allocations: 0 / 440.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001432/0.2747, allocations: 456 kB / 440.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.828e-05/0.2748, allocations: 132.5 kB / 440.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002794/0.2751, allocations: 241.1 kB / 441 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.269e-05/0.2752, allocations: 33.7 kB / 441.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.2753, allocations: 164.7 kB / 441.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.751e-05/0.2754, allocations: 75.38 kB / 441.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.713e-05/0.2755, allocations: 53.69 kB / 441.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.2756, allocations: 338.8 kB / 441.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.2758, allocations: 71.97 kB / 441.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/0.276, allocations: 133.8 kB / 441.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003173/0.2763, allocations: 167.4 kB / 442.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2763, allocations: 0 / 442.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005204/0.2769, allocations: 290.1 kB / 442.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.2769, allocations: 4 kB / 442.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.2769, allocations: 3.984 kB / 442.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003622/0.2772, allocations: 96.89 kB / 442.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.2774, allocations: 27.92 kB / 442.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002578/0.28, allocations: 2.039 MB / 444.5 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002186/0.2802, allocations: 39.86 kB / 444.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.894e-05/0.2802, allocations: 8 kB / 444.6 MB, free: 9.531 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.000192/0.2804, allocations: 153.8 kB / 444.7 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.627e-05/0.2804, allocations: 31.73 kB / 444.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.289e-05/0.2805, allocations: 26.28 kB / 444.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.2805, allocations: 4 kB / 444.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.2805, allocations: 0 / 444.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.014e-06/0.2805, allocations: 3.984 kB / 444.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.2816, allocations: 0.7344 MB / 445.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2816, allocations: 0 / 445.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.2817, allocations: 23.98 kB / 445.5 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002552/0.282, allocations: 88.78 kB / 445.6 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.282, allocations: 4 kB / 445.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002404/0.2844, allocations: 2.055 MB / 447.7 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2844, allocations: 0 / 447.7 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006904/0.2851, allocations: 453.5 kB / 448.1 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.2852, allocations: 51.69 kB / 448.2 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.209e-05/0.2852, allocations: 11.98 kB / 448.2 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/0.2854, allocations: 19.98 kB / 448.2 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.517e-05/0.2855, allocations: 27.94 kB / 448.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.2855, allocations: 8 kB / 448.2 MB, free: 5.652 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001878/0.2857, allocations: 176.6 kB / 448.4 MB, free: 5.484 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2857, allocations: 4 kB / 448.4 MB, free: 5.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004683/0.2862, allocations: 95.89 kB / 448.5 MB, free: 5.387 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001485/0.2863, allocations: 104.8 kB / 448.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00072/0.2871, allocations: 346.2 kB / 448.9 MB, free: 4.926 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2871, allocations: 0 / 448.9 MB, free: 4.926 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004264/0.2875, allocations: 258.8 kB / 449.2 MB, free: 4.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004153/0.2879, allocations: 56.39 kB / 449.3 MB, free: 4.605 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.2891, allocations: 0.6044 MB / 449.9 MB, free: 3.984 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004262/0.2895, allocations: 0.7755 MB / 450.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.885e-05/0.2896, allocations: 22.3 kB / 450.7 MB, free: 3.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.084e-05/0.2896, allocations: 19.44 kB / 450.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2896, allocations: 0 / 450.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of Templates: time 0.01058/0.3002, allocations: 5.117 MB / 455.8 MB, free: 14.1 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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: 4.701710757799447]