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.001748/0.001748, allocations: 96.03 kB / 21.18 MB, free: 0.5312 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.001946/0.001946, allocations: 186 kB / 24.46 MB, free: 3.863 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.466/1.466, allocations: 225.7 MB / 253.3 MB, free: 12.84 MB / 206.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 0.001773/0.001773, allocations: 51.88 kB / 371.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2621, allocations: 52.16 MB / 423.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005261/0.2674, allocations: 3.681 MB / 427.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00189/0.2692, allocations: 0.9816 MB / 428.5 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002074/0.2694, allocations: 11.94 kB / 428.5 MB, free: 9.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002284/0.2697, allocations: 87.12 kB / 428.6 MB, free: 9.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003332/0.27, allocations: 186.5 kB / 428.8 MB, free: 9.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004777/0.2705, allocations: 223.6 kB / 429 MB, free: 9.301 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008205/0.2713, allocations: 0.8056 MB / 429.8 MB, free: 8.492 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00024/0.2715, allocations: 109.4 kB / 429.9 MB, free: 8.379 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004046/0.272, allocations: 315 kB / 430.2 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004127/0.2724, allocations: 322.6 kB / 430.5 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001126/0.2725, allocations: 83.94 kB / 430.6 MB, free: 7.672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001334/0.2726, allocations: 84 kB / 430.7 MB, free: 7.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001403/0.2728, allocations: 159.5 kB / 430.8 MB, free: 7.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002756/0.273, allocations: 278.8 kB / 431.1 MB, free: 7.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008037/0.2738, allocations: 0.8482 MB / 432 MB, free: 6.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2738, allocations: 3.984 kB / 432 MB, free: 6.309 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.11e-07/0.2738, allocations: 4 kB / 432 MB, free: 6.305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.2738, allocations: 0 / 432 MB, free: 6.305 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002498/0.2763, allocations: 0.9585 MB / 432.9 MB, free: 5.309 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.1e-05/0.2764, allocations: 8.031 kB / 432.9 MB, free: 5.301 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001175/0.2765, allocations: 64.56 kB / 433 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006219/0.2771, allocations: 352.5 kB / 433.3 MB, free: 4.867 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.732e-05/0.2771, allocations: 29.38 kB / 433.4 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.846e-05/0.2772, allocations: 40.38 kB / 433.4 MB, free: 4.801 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.2787, allocations: 0.6244 MB / 434 MB, free: 4.148 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.2787, allocations: 0 / 434 MB, free: 4.148 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.407e-05/0.2788, allocations: 19.98 kB / 434 MB, free: 4.129 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.2788, allocations: 8 kB / 434.1 MB, free: 4.121 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001935/0.2807, allocations: 0.6245 MB / 434.7 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003648/0.2844, allocations: 1.897 MB / 436.6 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003769/0.2881, allocations: 0.8003 MB / 437.4 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001043/0.2892, allocations: 361.3 kB / 437.7 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.899e-05/0.2892, allocations: 8.328 kB / 437.7 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001175/0.2904, allocations: 452.3 kB / 438.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.934e-06/0.2904, allocations: 3.938 kB / 438.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01382/0.3042, allocations: 2.199 MB / 440.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.983e-05/0.3043, allocations: 85.09 kB / 440.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005371/0.3048, allocations: 393.6 kB / 440.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.628e-05/0.3049, allocations: 29.7 kB / 440.9 MB, free: 13.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000204/0.3051, allocations: 236.8 kB / 441.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.3053, allocations: 138.8 kB / 441.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001666/0.3054, allocations: 74.02 kB / 441.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.3056, allocations: 366.7 kB / 441.7 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001049/0.3066, allocations: 318.2 kB / 442 MB, free: 11.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/0.3077, allocations: 393.2 kB / 442.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001844/0.3095, allocations: 0.5759 MB / 442.9 MB, free: 11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.3095, allocations: 0 / 442.9 MB, free: 11 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003684/0.3132, allocations: 0.9958 MB / 443.9 MB, free: 9.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.306e-05/0.3133, allocations: 44.19 kB / 444 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.3133, allocations: 0 / 444 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001248/0.3145, allocations: 392.5 kB / 444.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004938/0.315, allocations: 87.84 kB / 444.5 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008384/0.3234, allocations: 3.475 MB / 447.9 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007089/0.3241, allocations: 87.77 kB / 448 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.154e-05/0.3242, allocations: 15.98 kB / 448 MB, free: 5.789 MB / 350.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.0002672/0.3244, allocations: 173.7 kB / 448.2 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.151e-05/0.3245, allocations: 47.72 kB / 448.2 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001263/0.3246, allocations: 52.38 kB / 448.3 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.3246, allocations: 4 kB / 448.3 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.3246, allocations: 3.984 kB / 448.3 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.3247, allocations: 0 / 448.3 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006072/0.3253, allocations: 441.1 kB / 448.7 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.3253, allocations: 3.938 kB / 448.7 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004961/0.3258, allocations: 87.86 kB / 448.8 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001184/0.3269, allocations: 392.6 kB / 449.2 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.257e-05/0.327, allocations: 11.98 kB / 449.2 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008667/0.3357, allocations: 3.45 MB / 452.7 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3357, allocations: 4 kB / 452.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006112/0.3418, allocations: 1.442 MB / 454.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003504/0.3421, allocations: 107.8 kB / 454.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000119/0.3422, allocations: 12 kB / 454.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006014/0.3428, allocations: 71.91 kB / 454.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/0.343, allocations: 47.92 kB / 454.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.51e-05/0.3431, allocations: 15.98 kB / 454.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003862/0.3435, allocations: 279.2 kB / 454.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3435, allocations: 3.938 kB / 454.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007338/0.3442, allocations: 175.8 kB / 454.8 MB, free: 14.84 MB / 366.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.0001785/0.3444, allocations: 111.2 kB / 454.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003026/0.3474, allocations: 0.9401 MB / 455.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3474, allocations: 0 / 455.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001616/0.349, allocations: 0.5414 MB / 456.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000484/0.3495, allocations: 80.72 kB / 456.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003523/0.353, allocations: 1.241 MB / 457.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/0.3533, allocations: 232.8 kB / 458 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001603/0.3534, allocations: 35.42 kB / 458 MB, free: 11.56 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3534, allocations: 0 / 458 MB, free: 11.56 MB / 366.1 MB Notification: Performance of Templates: time 0.01727/0.3707, allocations: 9.936 MB / 467.9 MB, free: 1.648 MB / 366.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins1/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: 8.286461025010794]