Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.001304/0.001304, allocations: 108.6 kB / 21.18 MB, free: 0.7617 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.001414/0.001414, allocations: 189.2 kB / 24.48 MB, free: 4.164 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.408/1.408, allocations: 225.6 MB / 253.3 MB, free: 13.03 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.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5050,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 47.92 kB / 371.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2307, allocations: 52.17 MB / 423.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004418/0.2351, allocations: 2.97 MB / 426.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.2365, allocations: 0.7323 MB / 427.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001541/0.2366, allocations: 7.938 kB / 427.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001786/0.2368, allocations: 47.5 kB / 427.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000202/0.237, allocations: 107.1 kB / 427.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000311/0.2373, allocations: 99.83 kB / 427.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004671/0.2378, allocations: 406.3 kB / 428.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001967/0.238, allocations: 87.69 kB / 428.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002349/0.2382, allocations: 163.4 kB / 428.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000234/0.2385, allocations: 163.3 kB / 428.6 MB, free: 9.891 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.694e-05/0.2385, allocations: 36 kB / 428.7 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.671e-05/0.2386, allocations: 36 kB / 428.7 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.679e-05/0.2387, allocations: 75.77 kB / 428.8 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000191/0.2388, allocations: 183.1 kB / 429 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005118/0.2394, allocations: 435.6 kB / 429.4 MB, free: 9.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2394, allocations: 0 / 429.4 MB, free: 9.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2394, allocations: 3.938 kB / 429.4 MB, free: 9.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.98e-05/0.2394, allocations: 0 / 429.4 MB, free: 9.141 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.001084/0.2405, allocations: 0.5567 MB / 429.9 MB, free: 8.551 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.2405, allocations: 8.031 kB / 430 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.942e-05/0.2406, allocations: 32.75 kB / 430 MB, free: 8.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004168/0.241, allocations: 229.9 kB / 430.2 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.522e-05/0.241, allocations: 20.88 kB / 430.2 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.637e-05/0.2411, allocations: 24.38 kB / 430.3 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000539/0.2416, allocations: 291.9 kB / 430.5 MB, free: 7.918 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.2416, allocations: 0 / 430.5 MB, free: 7.918 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.01e-05/0.2417, allocations: 12 kB / 430.5 MB, free: 7.906 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.2417, allocations: 4 kB / 430.6 MB, free: 7.902 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004314/0.2421, allocations: 205.8 kB / 430.8 MB, free: 7.703 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001848/0.244, allocations: 1.113 MB / 431.9 MB, free: 6.512 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005222/0.2445, allocations: 202.5 kB / 432.1 MB, free: 6.305 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002987/0.2448, allocations: 124.8 kB / 432.2 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.531e-05/0.2448, allocations: 4 kB / 432.2 MB, free: 6.176 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003002/0.2451, allocations: 169.7 kB / 432.4 MB, free: 5.988 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.323e-06/0.2451, allocations: 0 / 432.4 MB, free: 5.988 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001402/0.2465, allocations: 442 kB / 432.8 MB, free: 5.547 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.817e-05/0.2466, allocations: 132.5 kB / 432.9 MB, free: 5.387 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002743/0.2469, allocations: 241 kB / 433.2 MB, free: 5.141 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.2469, allocations: 29.7 kB / 433.2 MB, free: 5.105 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.247, allocations: 176.6 kB / 433.4 MB, free: 4.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.773e-05/0.2471, allocations: 75.36 kB / 433.4 MB, free: 4.855 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.895e-05/0.2472, allocations: 49.73 kB / 433.5 MB, free: 4.801 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.2474, allocations: 334.8 kB / 433.8 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001631/0.2475, allocations: 75.91 kB / 433.9 MB, free: 4.391 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002019/0.2477, allocations: 125 kB / 434 MB, free: 4.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003158/0.248, allocations: 171.4 kB / 434.2 MB, free: 4.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.248, allocations: 0 / 434.2 MB, free: 4.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005216/0.2486, allocations: 286.2 kB / 434.4 MB, free: 3.781 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.2486, allocations: 4 kB / 434.5 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.2486, allocations: 8 kB / 434.5 MB, free: 3.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003381/0.2489, allocations: 88.89 kB / 434.5 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.2491, allocations: 31.92 kB / 434.6 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002454/0.2515, allocations: 2.031 MB / 436.6 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/0.2517, allocations: 35.92 kB / 436.6 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.773e-05/0.2518, allocations: 12 kB / 436.7 MB, free: 1.453 MB / 334.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.0001672/0.2519, allocations: 150.5 kB / 436.8 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.493e-05/0.252, allocations: 27.8 kB / 436.8 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.722e-05/0.252, allocations: 30.27 kB / 436.9 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.252, allocations: 4 kB / 436.9 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-06/0.252, allocations: 0 / 436.9 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.2521, allocations: 4 kB / 436.9 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.2531, allocations: 0.7347 MB / 437.6 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.2531, allocations: 0 / 437.6 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001179/0.2532, allocations: 23.98 kB / 437.6 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002774/0.2535, allocations: 92.95 kB / 437.7 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.2535, allocations: 4 kB / 437.7 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002481/0.256, allocations: 2.048 MB / 439.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.256, allocations: 0 / 439.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007363/0.2567, allocations: 455.5 kB / 440.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/0.2568, allocations: 51.7 kB / 440.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.021e-05/0.2569, allocations: 7.984 kB / 440.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002069/0.2571, allocations: 19.98 kB / 440.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.426e-05/0.2572, allocations: 31.94 kB / 440.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.565e-05/0.2572, allocations: 8 kB / 440.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001877/0.2574, allocations: 172.5 kB / 440.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2574, allocations: 4.062 kB / 440.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004738/0.2578, allocations: 91.89 kB / 440.6 MB, free: 13.32 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.0001382/0.258, allocations: 107.2 kB / 440.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007142/0.2587, allocations: 350.5 kB / 441 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2587, allocations: 192 / 441 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004518/0.2591, allocations: 258.5 kB / 441.3 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004392/0.2596, allocations: 67.78 kB / 441.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001237/0.2608, allocations: 0.6306 MB / 442 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004109/0.2612, allocations: 0.7675 MB / 442.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.607e-05/0.2613, allocations: 19.44 kB / 442.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2613, allocations: 0 / 442.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of Templates: time 0.007522/0.2688, allocations: 4.684 MB / 447.5 MB, free: 6.387 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 7.266848668921739]