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.001362/0.001362, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001448/0.001448, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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.9693/0.9693, allocations: 177 MB / 204.8 MB, free: 5.586 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.934e-06/1.934e-06, allocations: 0 / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.68e-05/2.873e-05, allocations: 2.312 kB / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004515/0.004543, allocations: 2.96 MB / 275.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00172/0.006263, allocations: 0.7867 MB / 276.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002097/0.006473, allocations: 7.938 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001653/0.006638, allocations: 51.5 kB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000251/0.006889, allocations: 107 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004215/0.00731, allocations: 123.7 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005427/0.007853, allocations: 430.1 kB / 277.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002211/0.008074, allocations: 83.61 kB / 277.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004328/0.008507, allocations: 247.4 kB / 277.7 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002455/0.008753, allocations: 127.7 kB / 277.8 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.509e-05/0.008818, allocations: 36 kB / 277.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.36e-05/0.008911, allocations: 40 kB / 277.9 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.621e-05/0.008977, allocations: 79.67 kB / 278 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.009118, allocations: 119.8 kB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004129/0.00953, allocations: 275.1 kB / 278.4 MB, free: 11.97 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.009534, allocations: 4 kB / 278.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.009534, allocations: 7.875 kB / 278.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.009542, allocations: 0 / 278.4 MB, free: 11.96 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.0009654/0.01051, allocations: 0.641 MB / 279 MB, free: 11.28 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.01055, allocations: 19.98 kB / 279 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002048/0.01075, allocations: 64.69 kB / 279.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003491/0.0111, allocations: 232.9 kB / 279.3 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.01112, allocations: 16.88 kB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.472e-05/0.01118, allocations: 24.38 kB / 279.4 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004514/0.01163, allocations: 296.7 kB / 279.7 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.01164, allocations: 192 / 279.7 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.99e-05/0.01167, allocations: 12.38 kB / 279.7 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.856e-05/0.01169, allocations: 7.938 kB / 279.7 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002732/0.01196, allocations: 114.9 kB / 279.8 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001533/0.01349, allocations: 1.088 MB / 280.9 MB, free: 9.293 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000438/0.01393, allocations: 159.2 kB / 281 MB, free: 9.125 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002403/0.01417, allocations: 103.6 kB / 281.1 MB, free: 9.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.479e-05/0.0142, allocations: 4 kB / 281.1 MB, free: 9.016 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002524/0.01445, allocations: 195.1 kB / 281.3 MB, free: 8.781 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.603e-06/0.01445, allocations: 0 / 281.3 MB, free: 8.781 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.001122/0.01557, allocations: 360.2 kB / 281.7 MB, free: 8.422 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.984e-05/0.01566, allocations: 140.4 kB / 281.8 MB, free: 8.254 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002668/0.01593, allocations: 280.2 kB / 282.1 MB, free: 7.965 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.01596, allocations: 29.7 kB / 282.1 MB, free: 7.93 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.0161, allocations: 215.4 kB / 282.3 MB, free: 7.711 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.415e-05/0.01619, allocations: 75.38 kB / 282.4 MB, free: 7.637 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.0163, allocations: 55.33 kB / 282.5 MB, free: 7.574 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.0165, allocations: 0.5079 MB / 283 MB, free: 7.055 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.01662, allocations: 39.97 kB / 283 MB, free: 7.016 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.01679, allocations: 149.5 kB / 283.1 MB, free: 6.832 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002227/0.01701, allocations: 122.6 kB / 283.3 MB, free: 6.695 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.01701, allocations: 0 / 283.3 MB, free: 6.695 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004047/0.01742, allocations: 213 kB / 283.5 MB, free: 6.477 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.01744, allocations: 15.41 kB / 283.5 MB, free: 6.465 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.01744, allocations: 0 / 283.5 MB, free: 6.465 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003154/0.01776, allocations: 71.58 kB / 283.6 MB, free: 6.391 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.01788, allocations: 27.92 kB / 283.6 MB, free: 6.363 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002136/0.02002, allocations: 2.364 MB / 285.9 MB, free: 3.883 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001614/0.02018, allocations: 35.77 kB / 286 MB, free: 3.848 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.697e-05/0.02019, allocations: 4 kB / 286 MB, free: 3.844 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.0001398/0.02033, allocations: 172.5 kB / 286.2 MB, free: 3.664 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.093e-05/0.02038, allocations: 35.84 kB / 286.2 MB, free: 3.629 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.527e-05/0.02043, allocations: 26.28 kB / 286.2 MB, free: 3.602 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.02043, allocations: 8.031 kB / 286.2 MB, free: 3.594 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.02044, allocations: 0 / 286.2 MB, free: 3.594 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.02045, allocations: 7.922 kB / 286.2 MB, free: 3.586 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008172/0.02126, allocations: 0.6719 MB / 286.9 MB, free: 2.863 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.02127, allocations: 0 / 286.9 MB, free: 2.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.591e-05/0.02136, allocations: 16 kB / 286.9 MB, free: 2.848 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002325/0.02159, allocations: 67.62 kB / 287 MB, free: 2.777 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/0.02162, allocations: 8 kB / 287 MB, free: 2.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002009/0.02363, allocations: 2.364 MB / 289.4 MB, free: 288 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.02363, allocations: 4 kB / 289.4 MB, free: 284 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005201/0.02415, allocations: 392.5 kB / 289.7 MB, free: 15.87 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.02425, allocations: 55.83 kB / 289.8 MB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.241e-05/0.02428, allocations: 4 kB / 289.8 MB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.02444, allocations: 19.98 kB / 289.8 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.02457, allocations: 31.94 kB / 289.9 MB, free: 15.76 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-05/0.02459, allocations: 11.94 kB / 289.9 MB, free: 15.75 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001834/0.02477, allocations: 193.1 kB / 290.1 MB, free: 15.56 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.02477, allocations: 4 kB / 290.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005708/0.02535, allocations: 91.84 kB / 290.1 MB, free: 15.46 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.0001397/0.02549, allocations: 110 kB / 290.3 MB, free: 15.35 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005945/0.02608, allocations: 352.1 kB / 290.6 MB, free: 14.99 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.02608, allocations: 0 / 290.6 MB, free: 14.99 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003606/0.02644, allocations: 304.5 kB / 290.9 MB, free: 14.67 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004458/0.02689, allocations: 61.44 kB / 291 MB, free: 14.61 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001515/0.0284, allocations: 0.5573 MB / 291.5 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.978e-05/0.02849, allocations: 88.31 kB / 291.6 MB, free: 13.91 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.707e-05/0.02858, allocations: 14.3 kB / 291.6 MB, free: 13.9 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.505e-05/0.02864, allocations: 20.5 kB / 291.6 MB, free: 13.88 MB / 282.7 MB Notification: Performance of SimCode: time 6.41e-07/0.02864, allocations: 0 / 291.6 MB, free: 13.88 MB / 282.7 MB Notification: Performance of Templates: time 0.009389/0.03803, allocations: 4.62 MB / 296.3 MB, free: 9.34 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.9414442093111575]