Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001582/0.001582, allocations: 85.91 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001213/0.001213, allocations: 158.5 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9682/0.9682, allocations: 177 MB / 205.9 MB, free: 4.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 274.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.059e-05/2.187e-05, allocations: 6.25 kB / 274.1 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003294/0.003316, allocations: 2.925 MB / 277.1 MB, free: 1.344 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001344/0.004659, allocations: 0.7841 MB / 277.8 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000167/0.004826, allocations: 9.781 kB / 277.8 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.004968, allocations: 51.5 kB / 277.9 MB, free: 0.5 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001774/0.005146, allocations: 108.2 kB / 278 MB, free: 404 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003411/0.005487, allocations: 122.2 kB / 278.1 MB, free: 284 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003746/0.005862, allocations: 426.1 kB / 278.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001709/0.006032, allocations: 83.62 kB / 278.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003409/0.006373, allocations: 247.4 kB / 278.9 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001896/0.006563, allocations: 119.7 kB / 279 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.602e-05/0.006609, allocations: 40 kB / 279 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.767e-05/0.006687, allocations: 44 kB / 279.1 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.177e-05/0.006738, allocations: 79.67 kB / 279.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.995e-05/0.006838, allocations: 123.7 kB / 279.3 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003167/0.007155, allocations: 275.1 kB / 279.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.007158, allocations: 0 / 279.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.007159, allocations: 0 / 279.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.007166, allocations: 0 / 279.5 MB, free: 14.86 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.0006745/0.00784, allocations: 0.6526 MB / 280.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.007874, allocations: 8.031 kB / 280.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.00802, allocations: 68.69 kB / 280.3 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002408/0.008261, allocations: 232.9 kB / 280.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/0.008279, allocations: 20.88 kB / 280.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.125e-05/0.00831, allocations: 24.38 kB / 280.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002735/0.008583, allocations: 280.7 kB / 280.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.008593, allocations: 192 / 280.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.92e-05/0.008612, allocations: 12.38 kB / 280.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.008619, allocations: 7.938 kB / 280.8 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001151/0.008734, allocations: 87.36 kB / 280.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.009755, allocations: 1.049 MB / 282 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002485/0.01, allocations: 151.2 kB / 282.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001215/0.01012, allocations: 91.61 kB / 282.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.01014, allocations: 7.938 kB / 282.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000157/0.0103, allocations: 198.4 kB / 282.4 MB, free: 11.78 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.113e-06/0.0103, allocations: 4 kB / 282.4 MB, free: 11.78 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006557/0.01096, allocations: 324.8 kB / 282.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.01101, allocations: 140.4 kB / 282.9 MB, free: 11.28 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.01117, allocations: 272.2 kB / 283.1 MB, free: 11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.01119, allocations: 33.73 kB / 283.1 MB, free: 10.96 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.01129, allocations: 227.3 kB / 283.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.571e-05/0.01133, allocations: 67.41 kB / 283.4 MB, free: 10.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.798e-05/0.0114, allocations: 59.3 kB / 283.5 MB, free: 10.6 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.01154, allocations: 0.5079 MB / 284 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.254e-05/0.01158, allocations: 23.98 kB / 284 MB, free: 10.05 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.062e-05/0.01167, allocations: 146.2 kB / 284.2 MB, free: 9.875 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001112/0.01178, allocations: 108.4 kB / 284.3 MB, free: 9.754 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.01178, allocations: 4.031 kB / 284.3 MB, free: 9.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002261/0.01201, allocations: 197.9 kB / 284.5 MB, free: 9.547 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.01202, allocations: 8 kB / 284.5 MB, free: 9.539 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.01203, allocations: 0 / 284.5 MB, free: 9.539 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001887/0.01222, allocations: 66.47 kB / 284.5 MB, free: 9.473 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.383e-05/0.0123, allocations: 27.98 kB / 284.6 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.01372, allocations: 2.314 MB / 286.9 MB, free: 7.023 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.607e-05/0.01381, allocations: 23.89 kB / 286.9 MB, free: 7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.01382, allocations: 8 kB / 286.9 MB, free: 6.992 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 9.869e-05/0.01392, allocations: 176.5 kB / 287.1 MB, free: 6.809 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.564e-05/0.01396, allocations: 35.78 kB / 287.1 MB, free: 6.773 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.301e-05/0.01399, allocations: 30.28 kB / 287.2 MB, free: 6.742 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.01399, allocations: 0 / 287.2 MB, free: 6.742 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.014, allocations: 4 kB / 287.2 MB, free: 6.738 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.014, allocations: 3.984 kB / 287.2 MB, free: 6.734 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005167/0.01452, allocations: 0.6294 MB / 287.8 MB, free: 6.062 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.01452, allocations: 0 / 287.8 MB, free: 6.062 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.619e-05/0.01459, allocations: 16 kB / 287.8 MB, free: 6.047 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001616/0.01475, allocations: 67.66 kB / 287.9 MB, free: 5.977 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.01476, allocations: 4 kB / 287.9 MB, free: 5.973 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.01608, allocations: 2.328 MB / 290.2 MB, free: 3.535 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.01608, allocations: 0 / 290.2 MB, free: 3.535 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003152/0.01639, allocations: 366.4 kB / 290.6 MB, free: 3.152 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.695e-05/0.01646, allocations: 51.7 kB / 290.6 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.01648, allocations: 4 kB / 290.6 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.54e-05/0.01658, allocations: 15.98 kB / 290.6 MB, free: 3.082 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.163e-05/0.01665, allocations: 35.94 kB / 290.7 MB, free: 3.047 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.01666, allocations: 0 / 290.7 MB, free: 3.047 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.754e-05/0.01675, allocations: 189.1 kB / 290.9 MB, free: 2.859 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.1e-08/0.01675, allocations: 4.062 kB / 290.9 MB, free: 2.855 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003117/0.01706, allocations: 91.89 kB / 290.9 MB, free: 2.766 MB / 266.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.0001131/0.01717, allocations: 107.2 kB / 291.1 MB, free: 2.652 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003693/0.01754, allocations: 348.4 kB / 291.4 MB, free: 2.293 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.01754, allocations: 112 / 291.4 MB, free: 2.293 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002115/0.01775, allocations: 300.7 kB / 291.7 MB, free: 1.98 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002626/0.01802, allocations: 50.17 kB / 291.7 MB, free: 1.934 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000886/0.0189, allocations: 0.5558 MB / 292.3 MB, free: 1.344 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.31e-05/0.01897, allocations: 92.3 kB / 292.4 MB, free: 1.234 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.552e-05/0.01903, allocations: 22.3 kB / 292.4 MB, free: 1.215 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.01915, allocations: 122.2 kB / 292.5 MB, free: 1.094 MB / 266.7 MB Notification: Performance of SimCode: time 1.252e-06/0.01916, allocations: 0 / 292.5 MB, free: 1.094 MB / 266.7 MB Notification: Performance of Templates: time 0.00686/0.02602, allocations: 5.014 MB / 297.5 MB, free: 12.18 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 2.831162065733224]