Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 103.2 kB / 18.4 MB, free: 4.68 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.001161/0.001161, allocations: 191.3 kB / 19.34 MB, free: 3.754 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.338/1.338, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001314/0.001314, allocations: 43.92 kB / 329.2 MB, free: 3.363 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08549/0.08682, allocations: 46.62 MB / 375.8 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002587/0.08944, allocations: 1.477 MB / 377.3 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006063/0.09007, allocations: 247.3 kB / 377.5 MB, free: 2.902 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.255e-05/0.09017, allocations: 4 kB / 377.5 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.09032, allocations: 23.69 kB / 377.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.58e-05/0.09038, allocations: 15.8 kB / 377.6 MB, free: 2.859 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003672/0.09075, allocations: 115.8 kB / 377.7 MB, free: 2.746 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003041/0.09106, allocations: 259.5 kB / 377.9 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002675/0.09134, allocations: 162.4 kB / 378.1 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.13e-05/0.09144, allocations: 99.69 kB / 378.2 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001107/0.09156, allocations: 87.61 kB / 378.3 MB, free: 2.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.427e-05/0.0916, allocations: 24 kB / 378.3 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.444e-05/0.09169, allocations: 31.98 kB / 378.3 MB, free: 2.094 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.032e-05/0.09176, allocations: 59.83 kB / 378.4 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.515e-05/0.09185, allocations: 95.47 kB / 378.5 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000242/0.0921, allocations: 235.2 kB / 378.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.09211, allocations: 0 / 378.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.09212, allocations: 0 / 378.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.09213, allocations: 0 / 378.7 MB, free: 1.711 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006008/0.09273, allocations: 498.5 kB / 379.2 MB, free: 1.176 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.09278, allocations: 8.031 kB / 379.2 MB, free: 1.168 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.195e-05/0.09285, allocations: 28.59 kB / 379.2 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002641/0.09312, allocations: 224.1 kB / 379.4 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.174e-05/0.09316, allocations: 24.92 kB / 379.5 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.607e-05/0.0932, allocations: 24.38 kB / 379.5 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003917/0.0936, allocations: 244 kB / 379.7 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.09362, allocations: 4.188 kB / 379.7 MB, free: 0.582 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.09365, allocations: 11.94 kB / 379.7 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.09366, allocations: 8 kB / 379.8 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002819/0.09395, allocations: 153.7 kB / 379.9 MB, free: 420 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1726/0.2665, allocations: 0.6885 MB / 380.6 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003004/0.2669, allocations: 171 kB / 380.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.267, allocations: 78.84 kB / 380.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.894e-05/0.267, allocations: 6.312 kB / 380.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002103/0.2673, allocations: 127.6 kB / 381 MB, free: 12.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.995e-06/0.2673, allocations: 1.203 kB / 381 MB, free: 12.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004319/0.2677, allocations: 218.4 kB / 381.2 MB, free: 12.54 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.2678, allocations: 55.89 kB / 381.2 MB, free: 12.47 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.2679, allocations: 142.9 kB / 381.4 MB, free: 12.37 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/0.2679, allocations: 37.36 kB / 381.4 MB, free: 12.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.96e-05/0.268, allocations: 128.1 kB / 381.5 MB, free: 12.24 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.027e-05/0.268, allocations: 70.44 kB / 381.6 MB, free: 12.21 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.536e-05/0.2681, allocations: 74.59 kB / 381.7 MB, free: 12.19 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.386e-05/0.2682, allocations: 327 kB / 382 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.2683, allocations: 61.55 kB / 382.1 MB, free: 11.88 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001272/0.2684, allocations: 131.2 kB / 382.2 MB, free: 11.81 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002017/0.2686, allocations: 175.8 kB / 382.4 MB, free: 11.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.2686, allocations: 1.375 kB / 382.4 MB, free: 11.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003286/0.269, allocations: 239.2 kB / 382.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.269, allocations: 5.5 kB / 382.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.269, allocations: 9.812 kB / 382.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.269, allocations: 2.75 kB / 382.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.2692, allocations: 32.84 kB / 382.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.2692, allocations: 7.109 kB / 382.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.952e-05/0.2693, allocations: 28.8 kB / 382.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.489e-05/0.2693, allocations: 10.97 kB / 382.7 MB, free: 11.7 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001214/0.2694, allocations: 161.4 kB / 382.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.557e-05/0.2695, allocations: 13.44 kB / 382.9 MB, free: 11.56 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000365/0.2699, allocations: 201.3 kB / 383.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.2699, allocations: 3.391 kB / 383.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2699, allocations: 1.188 kB / 383.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.274e-05/0.2699, allocations: 89.97 kB / 383.2 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.2699, allocations: 10.3 kB / 383.2 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.874e-05/0.27, allocations: 14.84 kB / 383.2 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.045e-05/0.2701, allocations: 20.78 kB / 383.2 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003713/0.2705, allocations: 270.2 kB / 383.5 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003176/0.2708, allocations: 355.1 kB / 383.8 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001145/0.2709, allocations: 89.84 kB / 383.9 MB, free: 10.96 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.469e-05/0.2709, allocations: 98.14 kB / 384 MB, free: 10.89 MB / 318.1 MB Notification: Performance of Backend: time 6.41e-07/0.271, allocations: 0 / 384 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004881/0.2714, allocations: 202.7 kB / 384.2 MB, free: 10.78 MB / 318.1 MB Notification: Performance of SimCode: time 0.0005518/0.272, allocations: 0.7319 MB / 384.9 MB, free: 10.12 MB / 318.1 MB Notification: Performance of Templates: time 0.005195/0.2772, allocations: 2.054 MB / 387 MB, free: 9.969 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches