Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001299/0.001299, allocations: 82.67 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001471/0.001471, allocations: 163.3 kB / 23.95 MB, free: 4.156 MB / 14.72 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.468/1.468, allocations: 177.1 MB / 204.3 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] 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.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.303e-06/1.303e-06, allocations: 0 / 325 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.86e-05/1.99e-05, allocations: 2.281 kB / 325 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002913/0.002933, allocations: 1.706 MB / 326.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006825/0.003616, allocations: 286.7 kB / 327 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.624e-05/0.003712, allocations: 7.75 kB / 327 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001334/0.003845, allocations: 27 kB / 327.1 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.545e-05/0.003911, allocations: 22.92 kB / 327.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004099/0.004321, allocations: 120.4 kB / 327.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003685/0.004689, allocations: 278.4 kB / 327.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000295/0.004984, allocations: 155.8 kB / 327.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000177/0.005161, allocations: 139.9 kB / 327.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001468/0.005308, allocations: 72.8 kB / 327.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.776e-05/0.005356, allocations: 23.94 kB / 327.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.146e-05/0.005427, allocations: 25.69 kB / 327.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.115e-05/0.005508, allocations: 56.56 kB / 327.9 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.005612, allocations: 74.17 kB / 328 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003688/0.005981, allocations: 266.4 kB / 328.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.005983, allocations: 0 / 328.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.005984, allocations: 4 kB / 328.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.005993, allocations: 0.6094 kB / 328.3 MB, free: 14.59 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006746/0.006668, allocations: 419.7 kB / 328.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.006701, allocations: 9.75 kB / 328.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002554/0.006956, allocations: 35.09 kB / 328.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002851/0.007241, allocations: 171.4 kB / 328.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.232e-05/0.007274, allocations: 21.73 kB / 328.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.754e-05/0.007321, allocations: 31.31 kB / 328.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004876/0.007809, allocations: 272.3 kB / 329.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.007821, allocations: 8.125 kB / 329.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.668e-05/0.007848, allocations: 10.75 kB / 329.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.007857, allocations: 11.56 kB / 329.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003298/0.008187, allocations: 166.4 kB / 329.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/0.009342, allocations: 0.8236 MB / 330.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000295/0.009637, allocations: 152.9 kB / 330.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001291/0.009766, allocations: 72.05 kB / 330.4 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.009788, allocations: 2.281 kB / 330.4 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002233/0.01001, allocations: 153.2 kB / 330.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.462e-06/0.01001, allocations: 0 / 330.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004597/0.01047, allocations: 222.7 kB / 330.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.06e-05/0.01053, allocations: 85.45 kB / 330.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.01068, allocations: 157.8 kB / 331 MB, free: 12.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.914e-05/0.01072, allocations: 38.05 kB / 331.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.01082, allocations: 143.3 kB / 331.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.919e-05/0.01088, allocations: 60.11 kB / 331.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.01101, allocations: 80.27 kB / 331.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.01117, allocations: 327.7 kB / 331.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.01129, allocations: 66.66 kB / 331.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001828/0.01147, allocations: 139.2 kB / 331.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002595/0.01173, allocations: 182.8 kB / 332.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.01173, allocations: 4 kB / 332.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003956/0.01213, allocations: 257.2 kB / 332.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.01215, allocations: 10.33 kB / 332.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.01215, allocations: 2.594 kB / 332.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.01217, allocations: 7.25 kB / 332.3 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.01231, allocations: 34.55 kB / 332.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.01232, allocations: 4.625 kB / 332.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.01243, allocations: 31.81 kB / 332.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.01245, allocations: 14.12 kB / 332.4 MB, free: 11.47 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001673/0.01262, allocations: 167.2 kB / 332.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.691e-05/0.01264, allocations: 14.7 kB / 332.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.551e-05/0.01269, allocations: 15.09 kB / 332.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.01269, allocations: 3.219 kB / 332.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.0127, allocations: 3.984 kB / 332.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.01271, allocations: 1 kB / 332.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007089/0.01341, allocations: 0.4937 MB / 333.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.01342, allocations: 4 kB / 333.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.418e-05/0.01349, allocations: 15.08 kB / 333.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.01349, allocations: 6.125 kB / 333.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.01351, allocations: 1.188 kB / 333.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.01351, allocations: 2.219 kB / 333.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.01352, allocations: 3.938 kB / 333.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003324/0.01385, allocations: 283.1 kB / 333.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.063e-05/0.01387, allocations: 17.59 kB / 333.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.652e-05/0.0139, allocations: 5.906 kB / 333.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.014, allocations: 11.3 kB / 333.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.215e-05/0.01407, allocations: 24.75 kB / 333.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.01408, allocations: 4.531 kB / 333.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.219e-05/0.01414, allocations: 94.58 kB / 333.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.01414, allocations: 0 / 333.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002994/0.01444, allocations: 49.39 kB / 333.6 MB, free: 10.52 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001323/0.01458, allocations: 111.6 kB / 333.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003117/0.01489, allocations: 168.5 kB / 333.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01489, allocations: 4.188 kB / 333.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001239/0.01501, allocations: 73.27 kB / 334 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002887/0.0153, allocations: 21.23 kB / 334 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006052/0.01591, allocations: 332.5 kB / 334.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001336/0.01604, allocations: 131 kB / 334.4 MB, free: 9.949 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.134e-05/0.01611, allocations: 22.75 kB / 334.5 MB, free: 9.941 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.296e-05/0.01617, allocations: 23.8 kB / 334.5 MB, free: 9.93 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.01617, allocations: 1.031 kB / 334.5 MB, free: 9.93 MB / 302.1 MB Notification: Performance of Templates: time 0.005415/0.02159, allocations: 1.734 MB / 336.2 MB, free: 9.059 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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: 4.326822467148304]