Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 114.2 kB / 17.75 MB, free: 5.355 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.001591/0.001592, allocations: 185.4 kB / 18.68 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 47.92 kB / 352 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2659, allocations: 49.44 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002622/0.2686, allocations: 1.666 MB / 403.1 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006183/0.2692, allocations: 295.1 kB / 403.3 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.607e-05/0.2693, allocations: 7.938 kB / 403.3 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.2694, allocations: 23.69 kB / 403.4 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.633e-05/0.2695, allocations: 19.78 kB / 403.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003764/0.2699, allocations: 119.8 kB / 403.5 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002958/0.2702, allocations: 279.4 kB / 403.8 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002903/0.2705, allocations: 183 kB / 404 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.431e-05/0.2706, allocations: 91.69 kB / 404.1 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/0.2707, allocations: 107.4 kB / 404.2 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.924e-05/0.2708, allocations: 24 kB / 404.2 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.822e-05/0.2709, allocations: 35.98 kB / 404.2 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.219e-05/0.2709, allocations: 55.83 kB / 404.3 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.271, allocations: 99.53 kB / 404.4 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002786/0.2713, allocations: 259.1 kB / 404.6 MB, free: 5.633 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2713, allocations: 4 kB / 404.6 MB, free: 5.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2713, allocations: 0 / 404.6 MB, free: 5.629 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.2713, allocations: 0 / 404.6 MB, free: 5.629 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.0006643/0.272, allocations: 0.4919 MB / 405.1 MB, free: 5.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.2721, allocations: 11.89 kB / 405.1 MB, free: 5.078 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.775e-05/0.2721, allocations: 20.75 kB / 405.1 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002618/0.2724, allocations: 232 kB / 405.4 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.946e-05/0.2724, allocations: 24.94 kB / 405.4 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.016e-05/0.2725, allocations: 32.36 kB / 405.4 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004465/0.2729, allocations: 270.6 kB / 405.7 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.273, allocations: 4.125 kB / 405.7 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.632e-05/0.273, allocations: 11.94 kB / 405.7 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.273, allocations: 12 kB / 405.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002931/0.2733, allocations: 165.6 kB / 405.9 MB, free: 4.266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001083/0.2744, allocations: 0.9711 MB / 406.9 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002753/0.2747, allocations: 169.4 kB / 407 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.2748, allocations: 85.72 kB / 407.1 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.2748, allocations: 7.938 kB / 407.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.275, allocations: 137 kB / 407.2 MB, free: 2.797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.373e-06/0.2751, allocations: 0 / 407.2 MB, free: 2.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004214/0.2755, allocations: 222.9 kB / 407.5 MB, free: 2.574 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.893e-05/0.2755, allocations: 93.16 kB / 407.6 MB, free: 2.465 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.2757, allocations: 157.3 kB / 407.7 MB, free: 2.305 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.955e-05/0.2757, allocations: 33.7 kB / 407.7 MB, free: 2.266 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.006e-05/0.2758, allocations: 144.5 kB / 407.9 MB, free: 2.121 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.954e-05/0.2759, allocations: 63.19 kB / 407.9 MB, free: 2.059 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.06e-05/0.276, allocations: 77.69 kB / 408 MB, free: 1.977 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.2761, allocations: 330.8 kB / 408.3 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.2762, allocations: 67.91 kB / 408.4 MB, free: 1.578 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.2764, allocations: 140.3 kB / 408.5 MB, free: 1.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002481/0.2766, allocations: 200.8 kB / 408.7 MB, free: 1.184 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.2766, allocations: 0 / 408.7 MB, free: 1.184 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003711/0.277, allocations: 257.2 kB / 409 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.277, allocations: 8 kB / 409 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.277, allocations: 0 / 409 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.2771, allocations: 4 kB / 409 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.2772, allocations: 35.92 kB / 409 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.2772, allocations: 4 kB / 409 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.82e-05/0.2773, allocations: 28.02 kB / 409.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.711e-05/0.2774, allocations: 16 kB / 409.1 MB, free: 0.832 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: 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.0001435/0.2775, allocations: 165.6 kB / 409.2 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.727e-05/0.2775, allocations: 15.89 kB / 409.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003173/0.2779, allocations: 182.4 kB / 409.4 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.2779, allocations: 3.984 kB / 409.4 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2779, allocations: 0 / 409.4 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.483e-05/0.2779, allocations: 100.8 kB / 409.5 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.405e-05/0.278, allocations: 4 kB / 409.5 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.431e-05/0.2781, allocations: 15.94 kB / 409.6 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.902e-05/0.2781, allocations: 23.97 kB / 409.6 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003951/0.2785, allocations: 364.4 kB / 409.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003479/0.2789, allocations: 433.7 kB / 410.4 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000128/0.279, allocations: 83.98 kB / 410.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.147e-05/0.2791, allocations: 99.2 kB / 410.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of Backend: time 4.11e-07/0.2791, allocations: 3.938 kB / 410.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006084/0.2797, allocations: 206.5 kB / 410.7 MB, free: 15.1 MB / 334.1 MB Notification: Performance of SimCode: time 0.0006686/0.2804, allocations: 0.7394 MB / 411.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of Templates: time 0.005112/0.2855, allocations: 2.012 MB / 413.5 MB, free: 12.31 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches