Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001114/0.001115, allocations: 109.7 kB / 18.4 MB, free: 4.676 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.001142/0.001143, allocations: 183.1 kB / 19.33 MB, free: 3.758 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.293/1.293, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001266/0.001266, allocations: 51.92 kB / 329.2 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07702/0.0783, allocations: 46.61 MB / 375.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002843/0.08117, allocations: 1.659 MB / 377.5 MB, free: 2.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006661/0.08186, allocations: 267.2 kB / 377.7 MB, free: 2.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.08199, allocations: 4 kB / 377.7 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001383/0.08216, allocations: 27.69 kB / 377.7 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.529e-05/0.08223, allocations: 15.8 kB / 377.8 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004179/0.08265, allocations: 123.8 kB / 377.9 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000316/0.08298, allocations: 263.6 kB / 378.1 MB, free: 2.242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003286/0.08332, allocations: 198.8 kB / 378.3 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.08343, allocations: 95.62 kB / 378.4 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001398/0.08358, allocations: 99.53 kB / 378.5 MB, free: 1.852 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.319e-05/0.08363, allocations: 24 kB / 378.5 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.906e-05/0.08371, allocations: 32 kB / 378.6 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.82e-05/0.08379, allocations: 55.83 kB / 378.6 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.0839, allocations: 107.5 kB / 378.7 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002785/0.08419, allocations: 255 kB / 379 MB, free: 1.387 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.686e-06/0.0842, allocations: 0 / 379 MB, free: 1.387 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.08421, allocations: 0 / 379 MB, free: 1.387 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.423e-06/0.08422, allocations: 4 kB / 379 MB, free: 1.383 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.0006204/0.08485, allocations: 485.9 kB / 379.5 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.08489, allocations: 15.89 kB / 379.5 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.37e-05/0.08496, allocations: 24.75 kB / 379.5 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002892/0.08526, allocations: 235.9 kB / 379.7 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.156e-05/0.0853, allocations: 24.94 kB / 379.8 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.639e-05/0.08535, allocations: 28.36 kB / 379.8 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004539/0.08581, allocations: 274.5 kB / 380.1 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.08584, allocations: 192 / 380.1 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.08587, allocations: 11.94 kB / 380.1 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.08589, allocations: 8 kB / 380.1 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000303/0.0862, allocations: 165.6 kB / 380.2 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1491/0.2353, allocations: 0.9601 MB / 381.2 MB, free: 13.1 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002539/0.2356, allocations: 152.8 kB / 381.3 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.2357, allocations: 77.81 kB / 381.4 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.806e-05/0.2357, allocations: 5.406 kB / 381.4 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001775/0.2359, allocations: 124.2 kB / 381.6 MB, free: 12.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.015e-06/0.2359, allocations: 1.078 kB / 381.6 MB, free: 12.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003861/0.2363, allocations: 209.1 kB / 381.8 MB, free: 12.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.51e-05/0.2364, allocations: 56.3 kB / 381.8 MB, free: 12.78 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.701e-05/0.2365, allocations: 159.6 kB / 382 MB, free: 12.65 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.2365, allocations: 38.44 kB / 382 MB, free: 12.61 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.232e-05/0.2366, allocations: 146.2 kB / 382.1 MB, free: 12.49 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.645e-05/0.2366, allocations: 60.64 kB / 382.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.487e-05/0.2367, allocations: 77.91 kB / 382.3 MB, free: 12.4 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.645e-05/0.2367, allocations: 324.3 kB / 382.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.2369, allocations: 62.84 kB / 382.7 MB, free: 12.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.237, allocations: 143 kB / 382.8 MB, free: 11.96 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002036/0.2372, allocations: 185.2 kB / 383 MB, free: 11.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/0.2372, allocations: 0 / 383 MB, free: 11.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003791/0.2376, allocations: 259.4 kB / 383.2 MB, free: 11.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.2376, allocations: 7.047 kB / 383.2 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.2376, allocations: 2.75 kB / 383.2 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.2377, allocations: 6.109 kB / 383.3 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.2378, allocations: 34.97 kB / 383.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.2378, allocations: 4.984 kB / 383.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.238, allocations: 32.45 kB / 383.3 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.581e-05/0.238, allocations: 17 kB / 383.3 MB, free: 11.68 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.0001295/0.2381, allocations: 160.5 kB / 383.5 MB, free: 11.53 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.442e-05/0.2382, allocations: 13.88 kB / 383.5 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000345/0.2385, allocations: 197.6 kB / 383.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.2385, allocations: 1.906 kB / 383.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2385, allocations: 3.781 kB / 383.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.01e-05/0.2386, allocations: 89.98 kB / 383.8 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.827e-05/0.2386, allocations: 7.281 kB / 383.8 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.135e-05/0.2387, allocations: 8.984 kB / 383.8 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.967e-05/0.2388, allocations: 20.05 kB / 383.8 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003748/0.2391, allocations: 267.2 kB / 384.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002685/0.2394, allocations: 353.1 kB / 384.4 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000111/0.2395, allocations: 85.27 kB / 384.5 MB, free: 10.87 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.045e-05/0.2396, allocations: 97.59 kB / 384.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of Backend: time 5.21e-07/0.2396, allocations: 3.172 kB / 384.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005031/0.2401, allocations: 209.5 kB / 384.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of SimCode: time 0.0005702/0.2407, allocations: 0.7498 MB / 385.6 MB, free: 9.996 MB / 318.1 MB Notification: Performance of Templates: time 0.006048/0.2467, allocations: 2.061 MB / 387.6 MB, free: 9.812 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches