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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 105.7 kB / 18.4 MB, free: 4.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009715/0.0009715, allocations: 187 kB / 19.34 MB, free: 3.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.368/1.368, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 47.94 kB / 329.2 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08551/0.08676, allocations: 46.61 MB / 375.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002749/0.08955, allocations: 1.687 MB / 377.5 MB, free: 2.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006119/0.09018, allocations: 255.3 kB / 377.7 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.993e-05/0.0903, allocations: 3.938 kB / 377.7 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.09045, allocations: 31.67 kB / 377.8 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.206e-05/0.09052, allocations: 15.81 kB / 377.8 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003675/0.09089, allocations: 119.8 kB / 377.9 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003151/0.09122, allocations: 271.5 kB / 378.2 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002812/0.09151, allocations: 181.5 kB / 378.3 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001/0.09162, allocations: 83.72 kB / 378.4 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001229/0.09175, allocations: 107.5 kB / 378.5 MB, free: 1.852 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.921e-05/0.09179, allocations: 24 kB / 378.6 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.903e-05/0.09187, allocations: 28 kB / 378.6 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.654e-05/0.09194, allocations: 59.83 kB / 378.6 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.146e-05/0.09204, allocations: 99.45 kB / 378.7 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002663/0.09231, allocations: 255.1 kB / 379 MB, free: 1.395 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.09232, allocations: 3.938 kB / 379 MB, free: 1.391 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.09233, allocations: 0 / 379 MB, free: 1.391 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.09234, allocations: 0 / 379 MB, free: 1.391 MB / 318.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.0005907/0.09294, allocations: 486.2 kB / 379.5 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.09298, allocations: 11.89 kB / 379.5 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.45e-05/0.09305, allocations: 28.73 kB / 379.5 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/0.09333, allocations: 232 kB / 379.7 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.887e-05/0.09337, allocations: 20.94 kB / 379.8 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.658e-05/0.09341, allocations: 32.36 kB / 379.8 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004151/0.09384, allocations: 270.5 kB / 380 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.09386, allocations: 8.172 kB / 380.1 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.09389, allocations: 15.94 kB / 380.1 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.0939, allocations: 8 kB / 380.1 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002864/0.09419, allocations: 165.6 kB / 380.2 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.149/0.2432, allocations: 0.9533 MB / 381.2 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002621/0.2435, allocations: 155.6 kB / 381.3 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.2437, allocations: 73.59 kB / 381.4 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.2437, allocations: 6.688 kB / 381.4 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001857/0.2439, allocations: 121.3 kB / 381.5 MB, free: 12.42 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.557e-06/0.2439, allocations: 0 / 381.5 MB, free: 12.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004296/0.2443, allocations: 218 kB / 381.8 MB, free: 12.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.89e-05/0.2444, allocations: 55.09 kB / 381.8 MB, free: 12.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.2445, allocations: 154.7 kB / 382 MB, free: 12.21 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.2445, allocations: 36.23 kB / 382 MB, free: 12.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.5e-05/0.2446, allocations: 146.8 kB / 382.1 MB, free: 12.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.051e-05/0.2446, allocations: 58.72 kB / 382.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.984e-05/0.2447, allocations: 74.53 kB / 382.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.219e-05/0.2448, allocations: 330.8 kB / 382.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.245, allocations: 64.22 kB / 382.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/0.2451, allocations: 138.3 kB / 382.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002252/0.2453, allocations: 191.6 kB / 383 MB, free: 11.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.2454, allocations: 1.375 kB / 383 MB, free: 11.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000399/0.2458, allocations: 253.2 kB / 383.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.2458, allocations: 10.5 kB / 383.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.2458, allocations: 2.312 kB / 383.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.674e-05/0.2458, allocations: 4.125 kB / 383.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.246, allocations: 34.92 kB / 383.3 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.246, allocations: 5.953 kB / 383.3 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.831e-05/0.2461, allocations: 28.83 kB / 383.3 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.048e-05/0.2462, allocations: 16.12 kB / 383.3 MB, free: 11.43 MB / 318.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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0001223/0.2463, allocations: 156.5 kB / 383.5 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.716e-05/0.2463, allocations: 16.56 kB / 383.5 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003827/0.2467, allocations: 197 kB / 383.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.2467, allocations: 1.641 kB / 383.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2467, allocations: 3.469 kB / 383.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.793e-05/0.2468, allocations: 86.67 kB / 383.8 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.862e-05/0.2468, allocations: 6.766 kB / 383.8 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.178e-05/0.2469, allocations: 8.078 kB / 383.8 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.307e-05/0.247, allocations: 21.39 kB / 383.8 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003827/0.2474, allocations: 260.9 kB / 384.1 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002745/0.2476, allocations: 361.5 kB / 384.4 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001107/0.2478, allocations: 85.3 kB / 384.5 MB, free: 10.62 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.787e-05/0.2478, allocations: 100.7 kB / 384.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of Backend: time 4.81e-07/0.2478, allocations: 1.156 kB / 384.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004814/0.2483, allocations: 205.1 kB / 384.8 MB, free: 10.44 MB / 318.1 MB Notification: Performance of SimCode: time 0.0005692/0.2489, allocations: 0.7514 MB / 385.6 MB, free: 9.754 MB / 318.1 MB Notification: Performance of Templates: time 0.00524/0.2541, allocations: 2.026 MB / 387.6 MB, free: 9.59 MB / 318.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches