Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 172.7 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.532/1.532, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00102/0.00102, allocations: 82.7 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.967e-05/3.012e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1137, allocations: 47.56 MB / 370 MB, free: 1.738 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3888/0.5026, allocations: 75.72 MB / 445.7 MB, free: 1.531 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/0.5029, allocations: 66.38 kB / 445.8 MB, free: 1.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00827/0.5112, allocations: 2.977 MB / 448.8 MB, free: 14.92 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.5112, allocations: 0 / 448.8 MB, free: 14.92 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.738e-05/0.5112, allocations: 8 kB / 448.8 MB, free: 14.91 MB / 330.7 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.0005626/0.5118, allocations: 435.7 kB / 449.2 MB, free: 14.46 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.5119, allocations: 15.95 kB / 449.2 MB, free: 14.44 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.56e-05/0.5119, allocations: 23.72 kB / 449.2 MB, free: 14.42 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002802/0.5122, allocations: 221.5 kB / 449.5 MB, free: 14.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.681e-05/0.5123, allocations: 26.42 kB / 449.5 MB, free: 14.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.468e-05/0.5123, allocations: 29.5 kB / 449.5 MB, free: 14.14 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004345/0.5128, allocations: 268.8 kB / 449.8 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.5128, allocations: 0 / 449.8 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.606e-05/0.5128, allocations: 10.69 kB / 449.8 MB, free: 13.92 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.5128, allocations: 4 kB / 449.8 MB, free: 13.92 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002876/0.5131, allocations: 164.8 kB / 449.9 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.5143, allocations: 0.9528 MB / 450.9 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002591/0.5145, allocations: 151.4 kB / 451 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.5147, allocations: 74.69 kB / 451.1 MB, free: 12.75 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.5147, allocations: 4.188 kB / 451.1 MB, free: 12.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001823/0.5149, allocations: 109.8 kB / 451.2 MB, free: 12.65 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.793e-06/0.5149, allocations: 0 / 451.2 MB, free: 12.65 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003234/0.5152, allocations: 163.5 kB / 451.4 MB, free: 12.51 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.5153, allocations: 55.41 kB / 451.4 MB, free: 12.45 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.5154, allocations: 138.2 kB / 451.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.213e-05/0.5155, allocations: 48.5 kB / 451.6 MB, free: 12.27 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.556e-05/0.5156, allocations: 142.5 kB / 451.8 MB, free: 12.14 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.402e-05/0.5156, allocations: 53.59 kB / 451.8 MB, free: 12.1 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.949e-06/0.5156, allocations: 10.19 kB / 451.8 MB, free: 12.09 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.5158, allocations: 329.4 kB / 452.1 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.5159, allocations: 60.47 kB / 452.2 MB, free: 11.73 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001452/0.516, allocations: 127.6 kB / 452.3 MB, free: 11.6 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001159/0.5162, allocations: 74.02 kB / 452.4 MB, free: 11.54 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.5162, allocations: 4 kB / 452.4 MB, free: 11.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000341/0.5165, allocations: 250.2 kB / 452.7 MB, free: 11.34 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.5166, allocations: 4 kB / 452.7 MB, free: 11.33 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.5166, allocations: 7.984 kB / 452.7 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/0.5166, allocations: 4 kB / 452.7 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.5167, allocations: 35.84 kB / 452.7 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.5168, allocations: 4 kB / 452.7 MB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.945e-05/0.5169, allocations: 23.75 kB / 452.7 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.125e-05/0.5169, allocations: 16 kB / 452.7 MB, free: 11.25 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.393e-05/0.517, allocations: 127.5 kB / 452.9 MB, free: 11.13 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.462e-05/0.5171, allocations: 19.84 kB / 452.9 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003489/0.5174, allocations: 189 kB / 453.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.5174, allocations: 4 kB / 453.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.5174, allocations: 0 / 453.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.5174, allocations: 0 / 453.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006586/0.5181, allocations: 0.5923 MB / 453.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.5181, allocations: 4 kB / 453.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.1e-05/0.5182, allocations: 12 kB / 453.7 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.5182, allocations: 0 / 453.7 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.5182, allocations: 7.859 kB / 453.7 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.297e-06/0.5182, allocations: 4 kB / 453.7 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.5182, allocations: 0 / 453.7 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002773/0.5185, allocations: 273.2 kB / 454 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.219e-05/0.5186, allocations: 88.95 kB / 454.1 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.425e-05/0.5186, allocations: 7.797 kB / 454.1 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.68e-05/0.5187, allocations: 7.812 kB / 454.1 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.638e-05/0.5188, allocations: 23.84 kB / 454.1 MB, free: 9.984 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.508e-05/0.5188, allocations: 7.984 kB / 454.1 MB, free: 9.977 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.398e-05/0.5189, allocations: 95.72 kB / 454.2 MB, free: 9.887 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5189, allocations: 4 kB / 454.2 MB, free: 9.883 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002771/0.5192, allocations: 43.31 kB / 454.2 MB, free: 9.852 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001624/0.5193, allocations: 118.6 kB / 454.4 MB, free: 9.73 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002904/0.5196, allocations: 172.6 kB / 454.5 MB, free: 9.602 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.5197, allocations: 3.938 kB / 454.5 MB, free: 9.598 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.5198, allocations: 75.69 kB / 454.6 MB, free: 9.543 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002024/0.52, allocations: 23.47 kB / 454.6 MB, free: 9.523 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004546/0.5204, allocations: 237.3 kB / 454.9 MB, free: 9.301 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003149/0.5208, allocations: 0.748 MB / 455.6 MB, free: 8.531 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.5e-05/0.5209, allocations: 22.08 kB / 455.6 MB, free: 8.508 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.659e-05/0.5209, allocations: 23.42 kB / 455.6 MB, free: 8.484 MB / 330.7 MB Notification: Performance of SimCode: time 7.91e-07/0.5209, allocations: 4 kB / 455.7 MB, free: 8.48 MB / 330.7 MB Notification: Performance of Templates: time 0.004592/0.5255, allocations: 1.652 MB / 457.3 MB, free: 6.844 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches