Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009001/0.0009001, allocations: 96.5 kB / 18.01 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.0009485/0.0009485, allocations: 207.8 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002407/0.0002408, allocations: 4 kB / 308.4 MB, free: 0.8555 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08733/0.08759, allocations: 51.53 MB / 359.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001972/0.08961, allocations: 1.449 MB / 361.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007218/0.09036, allocations: 303 kB / 361.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.09052, allocations: 4 kB / 361.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001182/0.09065, allocations: 23.8 kB / 361.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.838e-05/0.09072, allocations: 7.922 kB / 361.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003703/0.09109, allocations: 103.9 kB / 361.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003422/0.09145, allocations: 247.5 kB / 362 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003226/0.09178, allocations: 157.9 kB / 362.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001226/0.09191, allocations: 79.64 kB / 362.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.09205, allocations: 83.55 kB / 362.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.853e-05/0.09209, allocations: 8 kB / 362.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.49e-05/0.09215, allocations: 12 kB / 362.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.438e-05/0.09221, allocations: 43.84 kB / 362.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.09233, allocations: 109.2 kB / 362.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001857/0.09252, allocations: 155.6 kB / 362.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.09253, allocations: 4 kB / 362.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.09254, allocations: 0 / 362.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.09255, 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.0006255/0.09319, allocations: 455 kB / 363.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.09323, allocations: 12.03 kB / 363.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002189/0.09346, allocations: 24.73 kB / 363.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002308/0.0937, allocations: 228 kB / 363.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.941e-05/0.09375, allocations: 20.94 kB / 363.4 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.782e-05/0.09379, allocations: 28.38 kB / 363.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004476/0.09424, allocations: 278.5 kB / 363.7 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.09427, allocations: 192 / 363.7 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.922e-05/0.0943, allocations: 15.94 kB / 363.7 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.09432, allocations: 8 kB / 363.7 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003013/0.09462, allocations: 165.6 kB / 363.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.09577, allocations: 0.9633 MB / 364.8 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002816/0.09607, allocations: 169.5 kB / 365 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001263/0.0962, allocations: 85.56 kB / 365.1 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.09623, allocations: 4 kB / 365.1 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002301/0.09647, allocations: 144.5 kB / 365.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.09649, allocations: 3.938 kB / 365.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004158/0.09691, allocations: 225.1 kB / 365.5 MB, free: 7.523 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.612e-05/0.09697, allocations: 89.09 kB / 365.5 MB, free: 7.418 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001258/0.0971, allocations: 145.6 kB / 365.7 MB, free: 7.266 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.443e-05/0.09715, allocations: 41.83 kB / 365.7 MB, free: 7.219 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.529e-05/0.09724, allocations: 140.5 kB / 365.9 MB, free: 7.078 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.771e-05/0.09731, allocations: 63.17 kB / 365.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.407e-05/0.09738, allocations: 57.69 kB / 366 MB, free: 6.953 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.0975, allocations: 326.8 kB / 366.3 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.09764, allocations: 63.75 kB / 366.4 MB, free: 6.562 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/0.0978, allocations: 144.5 kB / 366.5 MB, free: 6.391 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002661/0.09807, allocations: 192.9 kB / 366.7 MB, free: 6.172 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.09808, allocations: 4 kB / 366.7 MB, free: 6.168 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003789/0.09847, allocations: 253.5 kB / 366.9 MB, free: 5.914 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.09849, allocations: 4 kB / 366.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.0985, allocations: 4 kB / 366.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.09853, allocations: 7.984 kB / 367 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001446/0.09868, allocations: 35.91 kB / 367 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.09869, allocations: 7.938 kB / 367 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.09881, allocations: 23.84 kB / 367 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.09883, allocations: 12 kB / 367 MB, free: 5.82 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.0001429/0.09898, allocations: 165.6 kB / 367.2 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.475e-05/0.09901, allocations: 15.81 kB / 367.2 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.613e-05/0.09907, allocations: 20.84 kB / 367.2 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.09908, allocations: 0 / 367.2 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.09909, allocations: 4 kB / 367.2 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.0991, allocations: 3.984 kB / 367.2 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006816/0.09978, allocations: 0.5783 MB / 367.8 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.0998, allocations: 0 / 367.8 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.715e-05/0.09988, allocations: 15.94 kB / 367.8 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/0.09989, allocations: 0 / 367.8 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.09991, allocations: 15.92 kB / 367.8 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.09992, allocations: 0 / 367.8 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.09992, allocations: 3.938 kB / 367.9 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002851/0.1002, allocations: 276 kB / 368.1 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.14e-05/0.1003, allocations: 89 kB / 368.2 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.502e-05/0.1003, allocations: 3.938 kB / 368.2 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.239e-05/0.1004, allocations: 8 kB / 368.2 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.821e-05/0.1005, allocations: 23.97 kB / 368.2 MB, free: 4.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.1005, allocations: 8 kB / 368.3 MB, free: 4.496 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.653e-05/0.1006, allocations: 106.5 kB / 368.4 MB, free: 4.395 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1006, allocations: 3.938 kB / 368.4 MB, free: 4.391 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002928/0.1009, allocations: 51.78 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,transition1.enableFire,step.localActive,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.0001177/0.101, allocations: 111.2 kB / 368.5 MB, free: 4.223 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003/0.1013, allocations: 179.6 kB / 368.7 MB, free: 4.047 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1013, allocations: 0 / 368.7 MB, free: 4.047 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000139/0.1015, allocations: 75.92 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.000287/0.1017, allocations: 20.61 kB / 368.8 MB, free: 3.953 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006281/0.1024, allocations: 434.6 kB / 369.2 MB, free: 3.492 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.1027, allocations: 0.729 MB / 369.9 MB, free: 2.738 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.715e-05/0.1028, allocations: 19.44 kB / 370 MB, free: 2.719 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1028, allocations: 4 kB / 370 MB, free: 2.715 MB / 302.1 MB Notification: Performance of Templates: time 0.004079/0.1069, allocations: 2.209 MB / 372.2 MB, free: 0.5078 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches