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.001329/0.001329, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001504/0.001505, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.618/1.618, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 60.12 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3615/0.3627, allocations: 50.54 MB / 409.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003168/0.3659, allocations: 1.702 MB / 410.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007346/0.3667, allocations: 295.1 kB / 411.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.3668, allocations: 4 kB / 411.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001539/0.367, allocations: 31.61 kB / 411.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.424e-05/0.3671, allocations: 23.78 kB / 411.3 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003974/0.3675, allocations: 111.8 kB / 411.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003431/0.3678, allocations: 267.5 kB / 411.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003498/0.3682, allocations: 193.5 kB / 411.8 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.3683, allocations: 91.69 kB / 411.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001619/0.3685, allocations: 99.53 kB / 412 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.3685, allocations: 24 kB / 412 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.262e-05/0.3686, allocations: 24 kB / 412.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.7e-05/0.3687, allocations: 59.83 kB / 412.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001308/0.3688, allocations: 107.4 kB / 412.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003145/0.3692, allocations: 251.1 kB / 412.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3692, allocations: 0 / 412.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3692, allocations: 0 / 412.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.349e-05/0.3692, allocations: 4 kB / 412.5 MB, free: 14.32 MB / 334.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.0007352/0.37, allocations: 499.8 kB / 413 MB, free: 13.78 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.37, allocations: 8.031 kB / 413 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000217/0.3702, allocations: 28.73 kB / 413 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003352/0.3706, allocations: 236 kB / 413.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.423e-05/0.3706, allocations: 20.94 kB / 413.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.085e-05/0.3707, allocations: 28.38 kB / 413.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004603/0.3711, allocations: 270.6 kB / 413.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.3711, allocations: 4.125 kB / 413.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/0.3712, allocations: 15.94 kB / 413.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.3712, allocations: 8 kB / 413.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003074/0.3715, allocations: 161.6 kB / 413.7 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001199/0.3727, allocations: 0.9594 MB / 414.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/0.373, allocations: 174.6 kB / 414.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.3732, allocations: 81.62 kB / 414.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.958e-05/0.3732, allocations: 4 kB / 414.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002169/0.3734, allocations: 140 kB / 415.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.713e-06/0.3735, allocations: 0 / 415.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004588/0.3739, allocations: 221.2 kB / 415.3 MB, free: 11.28 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.194e-05/0.374, allocations: 85.11 kB / 415.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001297/0.3742, allocations: 153.2 kB / 415.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.592e-05/0.3742, allocations: 41.69 kB / 415.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.3743, allocations: 140.5 kB / 415.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.794e-05/0.3744, allocations: 55.25 kB / 415.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.3745, allocations: 85.45 kB / 415.8 MB, free: 10.69 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.3746, allocations: 334.9 kB / 416.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.3748, allocations: 59.97 kB / 416.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001751/0.375, allocations: 140.5 kB / 416.4 MB, free: 10.13 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002917/0.3753, allocations: 188.3 kB / 416.5 MB, free: 9.914 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3753, allocations: 8 kB / 416.6 MB, free: 9.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003776/0.3757, allocations: 253.2 kB / 416.8 MB, free: 9.652 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.3757, allocations: 4 kB / 416.8 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.3757, allocations: 4 kB / 416.8 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.3757, allocations: 7.984 kB / 416.8 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.3759, allocations: 27.92 kB / 416.8 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.948e-06/0.3759, allocations: 8.281 kB / 416.9 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001117/0.376, allocations: 35.67 kB / 416.9 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.376, allocations: 12 kB / 416.9 MB, free: 9.555 MB / 334.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.0001512/0.3762, allocations: 165.6 kB / 417.1 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.239e-05/0.3762, allocations: 11.91 kB / 417.1 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.736e-05/0.3763, allocations: 16.84 kB / 417.1 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.3763, allocations: 4 kB / 417.1 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/0.3763, allocations: 0 / 417.1 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.3763, allocations: 8 kB / 417.1 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007062/0.377, allocations: 0.5781 MB / 417.7 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.377, allocations: 0 / 417.7 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.704e-05/0.3771, allocations: 12 kB / 417.7 MB, free: 8.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.3771, allocations: 4 kB / 417.7 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.3771, allocations: 4 kB / 417.7 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.3771, allocations: 3.938 kB / 417.7 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.3771, allocations: 7.984 kB / 417.7 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003123/0.3775, allocations: 268.1 kB / 418 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.262e-05/0.3775, allocations: 92.86 kB / 418.1 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.89e-05/0.3776, allocations: 11.98 kB / 418.1 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.907e-05/0.3777, allocations: 7.938 kB / 418.1 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.787e-05/0.3777, allocations: 27.97 kB / 418.1 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.3778, allocations: 4 kB / 418.1 MB, free: 8.227 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.123e-05/0.3778, allocations: 103.2 kB / 418.2 MB, free: 8.125 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3778, allocations: 4 kB / 418.2 MB, free: 8.121 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002863/0.3781, allocations: 43.84 kB / 418.3 MB, free: 8.078 MB / 334.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.0001281/0.3783, allocations: 111.2 kB / 418.4 MB, free: 7.961 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003389/0.3786, allocations: 176.1 kB / 418.5 MB, free: 7.789 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.3786, allocations: 0 / 418.5 MB, free: 7.789 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.3788, allocations: 92.2 kB / 418.6 MB, free: 7.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003106/0.3791, allocations: 28.03 kB / 418.7 MB, free: 7.672 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006287/0.3797, allocations: 330.3 kB / 419 MB, free: 7.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000355/0.3801, allocations: 0.7404 MB / 419.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.103e-05/0.3802, allocations: 17.95 kB / 419.7 MB, free: 6.527 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.875e-05/0.3802, allocations: 19.44 kB / 419.8 MB, free: 6.508 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3802, allocations: 0 / 419.8 MB, free: 6.508 MB / 334.1 MB Notification: Performance of Templates: time 0.004963/0.3852, allocations: 1.694 MB / 421.5 MB, free: 4.82 MB / 334.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches