Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008237/0.0008242, allocations: 90.67 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000881/0.000881, allocations: 201.5 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.7 MB / 247.5 MB, free: 11.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002434/0.0002434, allocations: 4 kB / 308.4 MB, free: 0.8516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08821/0.08847, allocations: 51.52 MB / 359.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00181/0.09032, allocations: 1.422 MB / 361.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007026/0.09105, allocations: 303.1 kB / 361.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.0912, allocations: 11.94 kB / 361.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001131/0.09132, allocations: 15.88 kB / 361.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.415e-05/0.09139, allocations: 11.86 kB / 361.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003638/0.09176, allocations: 103.9 kB / 361.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003154/0.09208, allocations: 247.5 kB / 362 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003111/0.0924, allocations: 175.3 kB / 362.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.381e-05/0.09251, allocations: 67.72 kB / 362.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.09265, allocations: 83.53 kB / 362.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.534e-05/0.09268, allocations: 8 kB / 362.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.468e-05/0.09274, allocations: 24 kB / 362.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.317e-05/0.0928, allocations: 39.78 kB / 362.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.09291, allocations: 109.2 kB / 362.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001811/0.0931, allocations: 167.6 kB / 362.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.09311, allocations: 0 / 362.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.09312, allocations: 0 / 362.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.09313, allocations: 0 / 362.7 MB, free: 10.55 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.0006187/0.09376, allocations: 450.9 kB / 363.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.09381, allocations: 12.03 kB / 363.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002276/0.09404, allocations: 32.64 kB / 363.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/0.09428, allocations: 220.2 kB / 363.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.729e-05/0.09433, allocations: 24.88 kB / 363.4 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.131e-05/0.09438, allocations: 32.36 kB / 363.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004578/0.09484, allocations: 262.6 kB / 363.7 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.09487, allocations: 7.938 kB / 363.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.83e-05/0.0949, allocations: 15.98 kB / 363.7 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.09491, allocations: 11.94 kB / 363.7 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003002/0.09522, allocations: 165.5 kB / 363.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/0.09636, allocations: 0.9633 MB / 364.8 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002811/0.09666, allocations: 181.3 kB / 365 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001188/0.09679, allocations: 77.64 kB / 365.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.09682, allocations: 4 kB / 365.1 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002134/0.09704, allocations: 138.3 kB / 365.2 MB, free: 7.762 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.773e-06/0.09705, allocations: 0 / 365.2 MB, free: 7.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004155/0.09747, allocations: 228.5 kB / 365.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/0.09753, allocations: 89.09 kB / 365.5 MB, free: 7.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.09765, allocations: 152 kB / 365.7 MB, free: 7.273 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.707e-05/0.09769, allocations: 37.7 kB / 365.7 MB, free: 7.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.281e-05/0.09778, allocations: 140.7 kB / 365.8 MB, free: 7.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.649e-05/0.09784, allocations: 63.2 kB / 365.9 MB, free: 7.027 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.786e-05/0.09792, allocations: 53.69 kB / 366 MB, free: 6.969 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.09803, allocations: 326.8 kB / 366.3 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.09816, allocations: 67.91 kB / 366.3 MB, free: 6.574 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.09832, allocations: 140.3 kB / 366.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00027/0.0986, allocations: 201 kB / 366.7 MB, free: 6.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.09861, allocations: 0 / 366.7 MB, free: 6.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000378/0.09899, allocations: 249.2 kB / 366.9 MB, free: 5.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.09902, allocations: 4 kB / 366.9 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.09903, allocations: 4.281 kB / 366.9 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.09905, allocations: 8 kB / 366.9 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.09919, allocations: 31.92 kB / 367 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.09921, allocations: 4 kB / 367 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.09933, allocations: 31.69 kB / 367 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.09936, allocations: 12 kB / 367 MB, free: 5.836 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.0001411/0.0995, allocations: 165.6 kB / 367.2 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.231e-05/0.09953, allocations: 11.84 kB / 367.2 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.66e-05/0.09959, allocations: 24.83 kB / 367.2 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.0996, allocations: 4 kB / 367.2 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.09961, allocations: 0 / 367.2 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.09962, allocations: 3.984 kB / 367.2 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006841/0.1003, allocations: 0.5867 MB / 367.8 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1003, allocations: 0 / 367.8 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.236e-05/0.1004, allocations: 19.98 kB / 367.8 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.9e-06/0.1004, allocations: 7.938 kB / 367.8 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.1004, allocations: 0 / 367.8 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1004, allocations: 4 kB / 367.8 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1004, allocations: 4 kB / 367.8 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002937/0.1007, allocations: 283.2 kB / 368.1 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.443e-05/0.1008, allocations: 88.95 kB / 368.2 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.686e-05/0.1008, allocations: 11.94 kB / 368.2 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.893e-05/0.1009, allocations: 15.98 kB / 368.2 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.18e-05/0.101, allocations: 15.98 kB / 368.3 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.101, allocations: 11.98 kB / 368.3 MB, free: 4.484 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.386e-05/0.1011, allocations: 97.94 kB / 368.4 MB, free: 4.391 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1011, allocations: 0 / 368.4 MB, free: 4.391 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002968/0.1014, allocations: 51.75 kB / 368.4 MB, free: 4.34 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.active,step.localActive,transition1.enableFire,initialStep.localActive,$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 (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.0001065/0.1015, allocations: 107.2 kB / 368.5 MB, free: 4.227 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003064/0.1018, allocations: 179.7 kB / 368.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1018, allocations: 0 / 368.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001285/0.102, allocations: 79.91 kB / 368.8 MB, free: 3.973 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.1023, allocations: 15.98 kB / 368.8 MB, free: 3.957 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006458/0.1029, allocations: 442 kB / 369.2 MB, free: 3.492 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.1032, allocations: 0.7329 MB / 369.9 MB, free: 2.734 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.63e-05/0.1033, allocations: 19.44 kB / 370 MB, free: 2.715 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1033, allocations: 0 / 370 MB, free: 2.715 MB / 302.1 MB Notification: Performance of Templates: time 0.004097/0.1074, allocations: 2.222 MB / 372.2 MB, free: 0.4922 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches