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.001143/0.001143, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.001056/0.001056, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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.083/1.083, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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 2.094e-06/2.094e-06, allocations: 0 / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.936e-05/3.145e-05, allocations: 2.312 kB / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003578/0.00361, allocations: 2.962 MB / 276 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001519/0.005129, allocations: 0.7867 MB / 276.7 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001494/0.005278, allocations: 4 kB / 276.7 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.005428, allocations: 47.52 kB / 276.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001707/0.005599, allocations: 107 kB / 276.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004131/0.006012, allocations: 131.6 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003892/0.006401, allocations: 418.1 kB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001906/0.006592, allocations: 87.61 kB / 277.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003077/0.0069, allocations: 235.5 kB / 277.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001754/0.007075, allocations: 131.6 kB / 277.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.031e-05/0.007115, allocations: 36 kB / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.713e-05/0.007183, allocations: 40 kB / 277.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.938e-05/0.007232, allocations: 79.73 kB / 278 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.007344, allocations: 127.7 kB / 278.2 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003493/0.007693, allocations: 271.1 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.007696, allocations: 0 / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.133e-06/0.007697, allocations: 0 / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.007705, allocations: 0 / 278.4 MB, free: 12.07 MB / 266.7 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.0009505/0.008656, allocations: 0.6488 MB / 279.1 MB, free: 11.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.119e-05/0.008717, allocations: 8.031 kB / 279.1 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002456/0.008962, allocations: 68.69 kB / 279.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003045/0.009267, allocations: 240.8 kB / 279.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.009287, allocations: 24.88 kB / 279.4 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.667e-05/0.009334, allocations: 24.38 kB / 279.4 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003274/0.009661, allocations: 284.8 kB / 279.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.009673, allocations: 8.125 kB / 279.7 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.986e-05/0.009693, allocations: 8.375 kB / 279.7 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/0.009709, allocations: 11.94 kB / 279.7 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001726/0.009881, allocations: 98.92 kB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.01115, allocations: 1.096 MB / 280.9 MB, free: 9.406 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003557/0.0115, allocations: 167.1 kB / 281.1 MB, free: 9.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.01168, allocations: 91.58 kB / 281.2 MB, free: 9.137 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.768e-05/0.01171, allocations: 8 kB / 281.2 MB, free: 9.129 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001973/0.01191, allocations: 203.1 kB / 281.4 MB, free: 8.887 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.232e-06/0.01191, allocations: 3.938 kB / 281.4 MB, free: 8.883 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.000842/0.01275, allocations: 359.9 kB / 281.7 MB, free: 8.523 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.225e-05/0.01282, allocations: 140.4 kB / 281.9 MB, free: 8.355 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.01301, allocations: 276.2 kB / 282.1 MB, free: 8.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.01303, allocations: 33.7 kB / 282.2 MB, free: 8.031 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.01314, allocations: 211.4 kB / 282.4 MB, free: 7.816 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.178e-05/0.01319, allocations: 75.38 kB / 282.5 MB, free: 7.742 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-05/0.01326, allocations: 55.36 kB / 282.5 MB, free: 7.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.0134, allocations: 0.5001 MB / 283 MB, free: 7.168 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.81e-05/0.01347, allocations: 35.97 kB / 283 MB, free: 7.133 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001152/0.01358, allocations: 153.5 kB / 283.2 MB, free: 6.945 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001693/0.01375, allocations: 121.3 kB / 283.3 MB, free: 6.812 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.01376, allocations: 8 kB / 283.3 MB, free: 6.805 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00029/0.01405, allocations: 217.7 kB / 283.5 MB, free: 6.582 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.01406, allocations: 4 kB / 283.5 MB, free: 6.578 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.01407, allocations: 7.938 kB / 283.5 MB, free: 6.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002774/0.01435, allocations: 67.56 kB / 283.6 MB, free: 6.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.333e-05/0.01444, allocations: 36.08 kB / 283.6 MB, free: 6.465 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001646/0.01609, allocations: 2.352 MB / 286 MB, free: 3.996 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.01619, allocations: 35.75 kB / 286 MB, free: 3.961 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.448e-05/0.0162, allocations: 12 kB / 286 MB, free: 3.949 MB / 266.7 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.0001052/0.01631, allocations: 168.6 kB / 286.2 MB, free: 3.773 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.323e-05/0.01634, allocations: 31.86 kB / 286.2 MB, free: 3.742 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.958e-05/0.01637, allocations: 30.28 kB / 286.3 MB, free: 3.711 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.01637, allocations: 0 / 286.3 MB, free: 3.711 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.01638, allocations: 7.984 kB / 286.3 MB, free: 3.703 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.01638, allocations: 3.938 kB / 286.3 MB, free: 3.699 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005664/0.01695, allocations: 0.6719 MB / 287 MB, free: 2.977 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.01695, allocations: 4.031 kB / 287 MB, free: 2.973 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.448e-05/0.01702, allocations: 23.92 kB / 287 MB, free: 2.949 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001522/0.01717, allocations: 67.62 kB / 287 MB, free: 2.879 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.01718, allocations: 3.984 kB / 287.1 MB, free: 2.875 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001394/0.01858, allocations: 2.372 MB / 289.4 MB, free: 388 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.01858, allocations: 0 / 289.4 MB, free: 388 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003655/0.01894, allocations: 390.6 kB / 289.8 MB, free: 15.97 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.756e-05/0.01901, allocations: 47.77 kB / 289.9 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.321e-05/0.01903, allocations: 11.94 kB / 289.9 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.592e-05/0.01912, allocations: 11.98 kB / 289.9 MB, free: 15.9 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.587e-05/0.01921, allocations: 40 kB / 289.9 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.01922, allocations: 7.938 kB / 289.9 MB, free: 15.86 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001201/0.01934, allocations: 197.1 kB / 290.1 MB, free: 15.66 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01934, allocations: 0 / 290.1 MB, free: 15.66 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003328/0.01967, allocations: 91.84 kB / 290.2 MB, free: 15.57 MB / 282.7 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.0001341/0.01981, allocations: 103.2 kB / 290.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005098/0.02032, allocations: 360.6 kB / 290.7 MB, free: 15.09 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.02032, allocations: 0 / 290.7 MB, free: 15.09 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002584/0.02058, allocations: 285.2 kB / 290.9 MB, free: 14.79 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.02088, allocations: 65.05 kB / 291 MB, free: 14.73 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001197/0.02208, allocations: 0.5604 MB / 291.6 MB, free: 14.14 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.875e-05/0.02214, allocations: 92.31 kB / 291.6 MB, free: 14.03 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.993e-05/0.02221, allocations: 26.27 kB / 291.7 MB, free: 14 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.514e-05/0.02226, allocations: 24.5 kB / 291.7 MB, free: 13.98 MB / 282.7 MB Notification: Performance of SimCode: time 1.082e-06/0.02226, allocations: 0 / 291.7 MB, free: 13.98 MB / 282.7 MB Notification: Performance of Templates: time 0.00761/0.02987, allocations: 4.624 MB / 296.3 MB, free: 9.453 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.338832536712289]