Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009144/0.0009145, allocations: 94.56 kB / 17.31 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 179.9 kB / 18.21 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002361/0.0002361, allocations: 7.938 kB / 302.1 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07375/0.074, allocations: 50.41 MB / 352.5 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001595/0.07562, allocations: 1.428 MB / 353.9 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006081/0.07624, allocations: 315 kB / 354.2 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.599e-05/0.07634, allocations: 4 kB / 354.2 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.143e-05/0.07644, allocations: 15.81 kB / 354.2 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.022e-05/0.0765, allocations: 11.91 kB / 354.2 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003123/0.07682, allocations: 99.91 kB / 354.3 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002665/0.07709, allocations: 251.5 kB / 354.6 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000237/0.07734, allocations: 161.9 kB / 354.8 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.927e-05/0.07743, allocations: 79.62 kB / 354.8 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001012/0.07754, allocations: 75.56 kB / 354.9 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.94e-05/0.07758, allocations: 16 kB / 354.9 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.875e-05/0.07764, allocations: 19.98 kB / 354.9 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.061e-05/0.0777, allocations: 43.83 kB / 355 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.617e-05/0.07779, allocations: 105.2 kB / 355.1 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001666/0.07796, allocations: 155.7 kB / 355.2 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.07797, allocations: 4 kB / 355.2 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.07798, allocations: 3.984 kB / 355.2 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.07799, allocations: 0 / 355.2 MB, free: 0.6797 MB / 286.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.0005197/0.07852, allocations: 451 kB / 355.7 MB, free: 188 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/0.07856, allocations: 12.03 kB / 355.7 MB, free: 176 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.152e-05/0.07861, allocations: 20.75 kB / 355.7 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002135/0.07883, allocations: 228 kB / 355.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.195e-05/0.07887, allocations: 24.94 kB / 356 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.908e-05/0.07892, allocations: 24.38 kB / 356 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000414/0.07934, allocations: 278.5 kB / 356.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.07936, allocations: 4.188 kB / 356.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.579e-05/0.07939, allocations: 15.88 kB / 356.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.07941, allocations: 8 kB / 356.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002843/0.07969, allocations: 165.6 kB / 356.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.08073, allocations: 0.9789 MB / 357.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002651/0.08101, allocations: 169.5 kB / 357.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/0.08113, allocations: 85.62 kB / 357.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.08116, allocations: 4 kB / 357.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001979/0.08136, allocations: 145 kB / 357.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.835e-06/0.08138, allocations: 0 / 357.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003995/0.08178, allocations: 231.3 kB / 358 MB, free: 13.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.08183, allocations: 85.09 kB / 358.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.08194, allocations: 148.9 kB / 358.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.44e-05/0.08198, allocations: 41.69 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.572e-05/0.08206, allocations: 140.6 kB / 358.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.895e-05/0.08212, allocations: 63.19 kB / 358.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.996e-05/0.08219, allocations: 57.67 kB / 358.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.499e-05/0.08229, allocations: 330.8 kB / 358.9 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.08241, allocations: 63.97 kB / 359 MB, free: 12.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.08257, allocations: 136.5 kB / 359.1 MB, free: 12.53 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002444/0.08282, allocations: 192.9 kB / 359.3 MB, free: 12.31 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.08283, allocations: 0 / 359.3 MB, free: 12.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003744/0.08321, allocations: 253.2 kB / 359.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.08323, allocations: 8.281 kB / 359.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.08325, allocations: 4 kB / 359.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.08326, allocations: 4 kB / 359.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.0834, allocations: 31.92 kB / 359.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.908e-06/0.08342, allocations: 11.92 kB / 359.6 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.08353, allocations: 27.83 kB / 359.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.626e-05/0.08356, allocations: 12 kB / 359.6 MB, free: 11.96 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.condition,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.0001273/0.0837, allocations: 161.6 kB / 359.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.08373, allocations: 19.81 kB / 359.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003144/0.08405, allocations: 190.4 kB / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.08406, allocations: 4 kB / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.08407, allocations: 0 / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.08408, allocations: 3.984 kB / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006663/0.08476, allocations: 0.5986 MB / 360.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.08477, allocations: 4 kB / 360.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.373e-05/0.08485, allocations: 19.88 kB / 360.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.08487, allocations: 3.938 kB / 360.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.08489, allocations: 11.98 kB / 360.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.08489, allocations: 0 / 360.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.0849, allocations: 0 / 360.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002908/0.08519, allocations: 288.4 kB / 360.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.679e-05/0.08524, allocations: 92.95 kB / 361 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.059e-05/0.08528, allocations: 11.94 kB / 361 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.08538, allocations: 15.92 kB / 361 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.286e-05/0.08545, allocations: 23.97 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/0.08547, allocations: 4 kB / 361.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.922e-05/0.08553, allocations: 95.27 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08553, allocations: 0 / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003038/0.08584, allocations: 55.75 kB / 361.2 MB, free: 10.25 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: 20 (transition2.t_start,step.active,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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 (26): * Single equations (assignments): 21 * 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.0001152/0.08596, allocations: 115.1 kB / 361.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003001/0.08627, allocations: 187.7 kB / 361.5 MB, free: 9.949 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.08628, allocations: 0 / 361.5 MB, free: 9.949 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.08641, allocations: 87.84 kB / 361.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000278/0.0867, allocations: 16 kB / 361.6 MB, free: 9.848 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005618/0.08727, allocations: 446.3 kB / 362 MB, free: 9.375 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.08752, allocations: 0.7326 MB / 362.8 MB, free: 8.617 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.7e-05/0.08758, allocations: 19.44 kB / 362.8 MB, free: 8.598 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.08759, allocations: 4 kB / 362.8 MB, free: 8.594 MB / 302.1 MB Notification: Performance of Templates: time 0.003858/0.09145, allocations: 2.393 MB / 365.2 MB, free: 6.203 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches