Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_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_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006729/0.006736, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.683/3.683, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001931/0.001931, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000761/0.0007612, allocations: 8 kB / 327 MB, free: 15.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.2283, allocations: 47.58 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003545/0.2319, allocations: 1.371 MB / 375.9 MB, free: 14.07 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00125/0.2333, allocations: 279.1 kB / 376.2 MB, free: 13.79 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001695/0.2335, allocations: 4 kB / 376.2 MB, free: 13.79 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.2337, allocations: 15.81 kB / 376.2 MB, free: 13.77 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.139e-05/0.2338, allocations: 15.97 kB / 376.2 MB, free: 13.76 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000568/0.2343, allocations: 87.84 kB / 376.3 MB, free: 13.67 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004309/0.2348, allocations: 163.6 kB / 376.5 MB, free: 13.51 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004333/0.2352, allocations: 153.4 kB / 376.6 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001447/0.2354, allocations: 67.78 kB / 376.7 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001845/0.2356, allocations: 79.61 kB / 376.7 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.543e-05/0.2357, allocations: 12 kB / 376.8 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001009/0.2358, allocations: 15.98 kB / 376.8 MB, free: 13.19 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.765e-05/0.2359, allocations: 39.84 kB / 376.8 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.889e-05/0.236, allocations: 57.58 kB / 376.9 MB, free: 13.09 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003681/0.2364, allocations: 163.6 kB / 377 MB, free: 12.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.2364, allocations: 0 / 377 MB, free: 12.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2364, allocations: 0 / 377 MB, free: 12.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.2364, allocations: 0 / 377 MB, free: 12.93 MB / 282.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.001093/0.2376, allocations: 458.2 kB / 377.5 MB, free: 12.43 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.397e-05/0.2376, allocations: 12.03 kB / 377.5 MB, free: 12.42 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.2378, allocations: 19.81 kB / 377.5 MB, free: 12.4 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005009/0.2383, allocations: 222.7 kB / 377.7 MB, free: 12.14 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.387e-05/0.2384, allocations: 20.56 kB / 377.7 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.866e-05/0.2386, allocations: 31.95 kB / 377.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.2397, allocations: 270 kB / 378 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.2397, allocations: 0 / 378 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.728e-05/0.2398, allocations: 12 kB / 378.1 MB, free: 11.79 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.292e-05/0.2399, allocations: 8 kB / 378.1 MB, free: 11.78 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008396/0.2407, allocations: 161.6 kB / 378.2 MB, free: 11.62 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0025/0.2433, allocations: 0.979 MB / 379.2 MB, free: 10.57 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005456/0.2439, allocations: 151.4 kB / 379.3 MB, free: 10.42 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.643e-05/0.2439, allocations: 4.188 kB / 379.3 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004025/0.2443, allocations: 107.5 kB / 379.5 MB, free: 10.3 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 3.917e-06/0.2444, allocations: 7.938 kB / 379.5 MB, free: 10.29 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007932/0.2452, allocations: 210 kB / 379.7 MB, free: 10.08 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.897e-05/0.2453, allocations: 55.41 kB / 379.7 MB, free: 10.01 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002783/0.2455, allocations: 160.1 kB / 379.9 MB, free: 9.844 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.232e-05/0.2456, allocations: 37.7 kB / 379.9 MB, free: 9.801 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002221/0.2459, allocations: 210.9 kB / 380.1 MB, free: 9.594 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.246, allocations: 63.19 kB / 380.2 MB, free: 9.531 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.811e-05/0.2461, allocations: 4 kB / 380.2 MB, free: 9.527 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002384/0.2463, allocations: 330.8 kB / 380.5 MB, free: 9.195 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003112/0.2467, allocations: 60.62 kB / 380.6 MB, free: 9.133 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004193/0.2471, allocations: 141.7 kB / 380.7 MB, free: 8.965 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003547/0.2475, allocations: 75.97 kB / 380.8 MB, free: 8.891 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-06/0.2475, allocations: 0 / 380.8 MB, free: 8.891 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009898/0.2485, allocations: 245.5 kB / 381 MB, free: 8.645 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.178e-05/0.2486, allocations: 8 kB / 381 MB, free: 8.637 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.926e-05/0.2486, allocations: 7.953 kB / 381 MB, free: 8.629 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.21e-05/0.2487, allocations: 4 kB / 381 MB, free: 8.625 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003564/0.249, allocations: 27.92 kB / 381.1 MB, free: 8.598 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.945e-05/0.2491, allocations: 4 kB / 381.1 MB, free: 8.594 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002903/0.2494, allocations: 39.67 kB / 381.1 MB, free: 8.555 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.619e-05/0.2495, allocations: 8 kB / 381.1 MB, free: 8.547 MB / 282.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,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,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.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003816/0.2499, allocations: 164.4 kB / 381.3 MB, free: 8.379 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.838e-05/0.2499, allocations: 11.81 kB / 381.3 MB, free: 8.367 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008057/0.2508, allocations: 196.2 kB / 381.5 MB, free: 8.172 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.992e-05/0.2508, allocations: 7.953 kB / 381.5 MB, free: 8.164 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.2508, allocations: 3.938 kB / 381.5 MB, free: 8.16 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.2509, allocations: 3.984 kB / 381.5 MB, free: 8.156 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001552/0.2524, allocations: 0.5915 MB / 382.1 MB, free: 7.504 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.2525, allocations: 0 / 382.1 MB, free: 7.504 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000169/0.2527, allocations: 19.92 kB / 382.1 MB, free: 7.484 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.305e-06/0.2527, allocations: 0 / 382.1 MB, free: 7.484 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.2527, allocations: 4 kB / 382.1 MB, free: 7.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.2527, allocations: 4 kB / 382.1 MB, free: 7.477 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.2528, allocations: 0 / 382.1 MB, free: 7.477 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006189/0.2534, allocations: 263.3 kB / 382.4 MB, free: 7.203 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.2535, allocations: 100.8 kB / 382.5 MB, free: 7.086 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.717e-05/0.2536, allocations: 11.98 kB / 382.5 MB, free: 7.074 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.2539, allocations: 4 kB / 382.5 MB, free: 7.07 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/0.254, allocations: 19.97 kB / 382.5 MB, free: 7.051 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.177e-05/0.254, allocations: 12 kB / 382.5 MB, free: 7.039 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000115/0.2542, allocations: 99.81 kB / 382.6 MB, free: 6.941 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.2542, allocations: 0 / 382.6 MB, free: 6.941 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006794/0.2549, allocations: 47.84 kB / 382.7 MB, free: 6.895 MB / 282.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.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * 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.0002487/0.2551, allocations: 119.1 kB / 382.8 MB, free: 6.77 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000648/0.2558, allocations: 175.8 kB / 383 MB, free: 6.598 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.2558, allocations: 4 kB / 383 MB, free: 6.594 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002679/0.2561, allocations: 75.84 kB / 383 MB, free: 6.52 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003785/0.2565, allocations: 23.92 kB / 383.1 MB, free: 6.496 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00124/0.2578, allocations: 414.1 kB / 383.5 MB, free: 6.059 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000586/0.2584, allocations: 0.7328 MB / 384.2 MB, free: 5.301 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001653/0.2586, allocations: 35.36 kB / 384.2 MB, free: 5.266 MB / 282.7 MB Notification: Performance of SimCode: time 1.452e-06/0.2586, allocations: 0 / 384.2 MB, free: 5.266 MB / 282.7 MB Notification: Performance of Templates: time 0.009055/0.2677, allocations: 2.345 MB / 386.6 MB, free: 2.918 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches