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.001713/0.001713, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002161/0.002161, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001145, allocations: 59.41 kB / 307.6 MB, free: 0.6562 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08192/0.08308, allocations: 50.54 MB / 358.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002677/0.0858, allocations: 1.668 MB / 359.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005918/0.08641, allocations: 291.2 kB / 360.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.5e-05/0.08651, allocations: 11.88 kB / 360.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.08664, allocations: 31.67 kB / 360.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.149e-05/0.08669, allocations: 19.8 kB / 360.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003305/0.08702, allocations: 111.8 kB / 360.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002755/0.08731, allocations: 271.5 kB / 360.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002801/0.0876, allocations: 194.3 kB / 360.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.966e-05/0.0877, allocations: 91.69 kB / 360.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000122/0.08783, allocations: 103.5 kB / 360.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.412e-05/0.08787, allocations: 24 kB / 360.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.228e-05/0.08793, allocations: 27.94 kB / 361 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.842e-05/0.088, allocations: 59.83 kB / 361 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.44e-05/0.0881, allocations: 107.5 kB / 361.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002294/0.08834, allocations: 235.5 kB / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.08835, allocations: 0 / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.08836, allocations: 0 / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.08837, allocations: 0 / 361.4 MB, free: 10.89 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.0005862/0.08896, allocations: 498.5 kB / 361.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.089, allocations: 8.031 kB / 361.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002033/0.08921, allocations: 32.64 kB / 361.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002063/0.08942, allocations: 232 kB / 362.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.126e-05/0.08946, allocations: 28.94 kB / 362.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.982e-05/0.08951, allocations: 28.38 kB / 362.2 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004015/0.08992, allocations: 270.5 kB / 362.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.08994, allocations: 192 / 362.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.815e-05/0.08997, allocations: 19.92 kB / 362.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.08998, allocations: 4 kB / 362.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002779/0.09027, allocations: 169.6 kB / 362.6 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009853/0.09126, allocations: 0.9633 MB / 363.6 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00026/0.09153, allocations: 173.4 kB / 363.7 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.09165, allocations: 85.67 kB / 363.8 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.09168, allocations: 7.984 kB / 363.8 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002278/0.09191, allocations: 140.2 kB / 364 MB, free: 8.043 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.756e-06/0.09193, allocations: 0 / 364 MB, free: 8.043 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003895/0.09232, allocations: 221.2 kB / 364.2 MB, free: 7.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/0.09238, allocations: 88.98 kB / 364.3 MB, free: 7.715 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.09249, allocations: 155.8 kB / 364.4 MB, free: 7.555 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.908e-05/0.09253, allocations: 45.69 kB / 364.5 MB, free: 7.504 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.679e-05/0.09262, allocations: 132.5 kB / 364.6 MB, free: 7.371 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.123e-05/0.09267, allocations: 63.19 kB / 364.7 MB, free: 7.309 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.149e-05/0.09277, allocations: 81.58 kB / 364.7 MB, free: 7.223 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.846e-05/0.09287, allocations: 330.9 kB / 365.1 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.09299, allocations: 71.75 kB / 365.1 MB, free: 6.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/0.09315, allocations: 132.5 kB / 365.3 MB, free: 6.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002298/0.09339, allocations: 192.4 kB / 365.5 MB, free: 6.441 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.0934, allocations: 4 kB / 365.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000368/0.09377, allocations: 257.2 kB / 365.7 MB, free: 6.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.0938, allocations: 10.97 kB / 365.7 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.09381, allocations: 0 / 365.7 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.09383, allocations: 4 kB / 365.7 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.09396, allocations: 35.92 kB / 365.8 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.09398, allocations: 8.266 kB / 365.8 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.176e-05/0.09408, allocations: 27.78 kB / 365.8 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.0941, allocations: 8 kB / 365.8 MB, free: 6.09 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.0001289/0.09424, allocations: 169.6 kB / 366 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.273e-05/0.09427, allocations: 11.81 kB / 366 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.549e-05/0.09432, allocations: 20.84 kB / 366 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.09433, allocations: 4 kB / 366 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.09434, allocations: 0 / 366 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.09435, allocations: 3.984 kB / 366 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006178/0.09497, allocations: 0.5781 MB / 366.6 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.09498, allocations: 0 / 366.6 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.84e-05/0.09506, allocations: 12 kB / 366.6 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.09507, allocations: 0 / 366.6 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.09509, allocations: 15.92 kB / 366.6 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.297e-06/0.0951, allocations: 0 / 366.6 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.09511, allocations: 3.938 kB / 366.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002695/0.09538, allocations: 272.1 kB / 366.9 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.426e-05/0.09543, allocations: 100.8 kB / 367 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.855e-05/0.09547, allocations: 7.938 kB / 367 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.605e-05/0.09556, allocations: 11.94 kB / 367 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.911e-05/0.09564, allocations: 23.97 kB / 367 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.09566, allocations: 8 kB / 367 MB, free: 4.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.348e-05/0.09571, allocations: 99.27 kB / 367.1 MB, free: 4.652 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09572, allocations: 0 / 367.1 MB, free: 4.652 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002887/0.09601, allocations: 47.84 kB / 367.2 MB, free: 4.605 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,step.active,transition1.enableFire,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 9.639e-05/0.09612, allocations: 111.1 kB / 367.3 MB, free: 4.488 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003277/0.09645, allocations: 195.9 kB / 367.5 MB, free: 4.297 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.09646, allocations: 0.5625 kB / 367.5 MB, free: 4.297 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.09658, allocations: 82.95 kB / 367.6 MB, free: 4.219 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.09688, allocations: 20.06 kB / 367.6 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005195/0.0974, allocations: 358.2 kB / 367.9 MB, free: 3.812 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002528/0.09767, allocations: 0.7404 MB / 368.7 MB, free: 3.043 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.196e-05/0.09774, allocations: 19.44 kB / 368.7 MB, free: 3.023 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.09774, allocations: 0 / 368.7 MB, free: 3.023 MB / 302.1 MB Notification: Performance of Templates: time 0.003563/0.1013, allocations: 2.251 MB / 370.9 MB, free: 0.7734 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