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.001235/0.001235, allocations: 100 kB / 21.18 MB, free: 0.6484 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.001392/0.001392, allocations: 185.8 kB / 24.45 MB, free: 3.961 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.494/1.494, allocations: 225.7 MB / 253.3 MB, free: 12.81 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.001555/0.001555, allocations: 51.91 kB / 371.6 MB, free: 9.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2574, allocations: 52.16 MB / 423.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004077/0.2615, allocations: 2.74 MB / 426.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001225/0.2627, allocations: 0.6934 MB / 427.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001349/0.2629, allocations: 15.88 kB / 427.3 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001228/0.263, allocations: 51.5 kB / 427.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001779/0.2632, allocations: 99.11 kB / 427.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002246/0.2634, allocations: 103.8 kB / 427.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004052/0.2638, allocations: 406.3 kB / 427.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001566/0.264, allocations: 87.67 kB / 428 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001947/0.2642, allocations: 155.5 kB / 428.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.2644, allocations: 151.2 kB / 428.3 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.656e-05/0.2644, allocations: 36 kB / 428.3 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.478e-05/0.2645, allocations: 36 kB / 428.4 MB, free: 9.902 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.303e-05/0.2646, allocations: 75.77 kB / 428.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001518/0.2647, allocations: 139.4 kB / 428.6 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004536/0.2652, allocations: 441.3 kB / 429 MB, free: 9.262 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2652, allocations: 0 / 429 MB, free: 9.262 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2652, allocations: 0 / 429 MB, free: 9.262 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.2652, allocations: 0 / 429 MB, free: 9.262 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.001034/0.2662, allocations: 0.5567 MB / 429.6 MB, free: 8.672 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.2662, allocations: 12.03 kB / 429.6 MB, free: 8.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.239e-05/0.2663, allocations: 32.75 kB / 429.6 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004242/0.2667, allocations: 225.9 kB / 429.8 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.2668, allocations: 20.88 kB / 429.8 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.048e-05/0.2668, allocations: 24.38 kB / 429.9 MB, free: 8.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005446/0.2674, allocations: 343.3 kB / 430.2 MB, free: 7.977 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.2674, allocations: 0 / 430.2 MB, free: 7.977 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.257e-05/0.2674, allocations: 12 kB / 430.2 MB, free: 7.965 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.2674, allocations: 4 kB / 430.2 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004145/0.2678, allocations: 213.8 kB / 430.4 MB, free: 7.754 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001673/0.2695, allocations: 0.9852 MB / 431.4 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005091/0.27, allocations: 202.6 kB / 431.6 MB, free: 6.496 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002951/0.2703, allocations: 124.8 kB / 431.7 MB, free: 6.371 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.2703, allocations: 4 kB / 431.7 MB, free: 6.367 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003413/0.2707, allocations: 220 kB / 432 MB, free: 6.117 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.513e-06/0.2707, allocations: 0 / 432 MB, free: 6.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001407/0.2721, allocations: 447.6 kB / 432.4 MB, free: 5.672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.623e-05/0.2722, allocations: 132.5 kB / 432.5 MB, free: 5.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002987/0.2725, allocations: 232.9 kB / 432.7 MB, free: 5.273 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.2725, allocations: 33.7 kB / 432.8 MB, free: 5.234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.2726, allocations: 168.6 kB / 432.9 MB, free: 5.066 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.445e-05/0.2727, allocations: 79.38 kB / 433 MB, free: 4.988 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.357e-05/0.2728, allocations: 45.7 kB / 433.1 MB, free: 4.938 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.273, allocations: 334.8 kB / 433.4 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001644/0.2731, allocations: 75.97 kB / 433.5 MB, free: 4.527 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002253/0.2734, allocations: 168.5 kB / 433.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003144/0.2737, allocations: 171.3 kB / 433.8 MB, free: 4.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2737, allocations: 0 / 433.8 MB, free: 4.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005163/0.2742, allocations: 290.2 kB / 434.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.2742, allocations: 11.94 kB / 434.1 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.2742, allocations: 0 / 434.1 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003644/0.2746, allocations: 96.73 kB / 434.2 MB, free: 3.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.2747, allocations: 23.98 kB / 434.2 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002384/0.2771, allocations: 2.001 MB / 436.2 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002144/0.2773, allocations: 31.83 kB / 436.2 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.2773, allocations: 8 kB / 436.2 MB, free: 1.582 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.0001736/0.2775, allocations: 141.8 kB / 436.4 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.194e-05/0.2776, allocations: 27.92 kB / 436.4 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.635e-05/0.2776, allocations: 34.27 kB / 436.4 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.2776, allocations: 3.938 kB / 436.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.2776, allocations: 0 / 436.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2776, allocations: 7.984 kB / 436.5 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009514/0.2786, allocations: 0.6506 MB / 437.1 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.2786, allocations: 7.938 kB / 437.1 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.2787, allocations: 19.98 kB / 437.1 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002648/0.279, allocations: 96.77 kB / 437.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.279, allocations: 4 kB / 437.2 MB, free: 0.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002284/0.2813, allocations: 1.998 MB / 439.2 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.2813, allocations: 4 kB / 439.2 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006832/0.2819, allocations: 453.7 kB / 439.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.282, allocations: 43.77 kB / 439.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.8e-05/0.2821, allocations: 8 kB / 439.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/0.2823, allocations: 15.92 kB / 439.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.2824, allocations: 39.88 kB / 439.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.47e-05/0.2824, allocations: 4 kB / 439.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001704/0.2826, allocations: 172.5 kB / 440 MB, free: 13.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2826, allocations: 4.062 kB / 440 MB, free: 13.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004585/0.2831, allocations: 91.84 kB / 440.1 MB, free: 13.6 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.0001221/0.2832, allocations: 99.25 kB / 440.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006829/0.2839, allocations: 350.3 kB / 440.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2839, allocations: 0 / 440.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004064/0.2843, allocations: 262 kB / 440.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003967/0.2847, allocations: 51.59 kB / 440.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.2859, allocations: 0.6274 MB / 441.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001647/0.286, allocations: 154.9 kB / 441.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.787e-05/0.2861, allocations: 23.44 kB / 441.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2861, allocations: 0 / 441.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of Templates: time 0.007133/0.2932, allocations: 4.662 MB / 446.3 MB, free: 7.324 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.57392347138375]