Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_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_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001467/0.001467, allocations: 174.7 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.315/1.315, allocations: 205.4 MB / 222.9 MB, free: 9.004 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.0007181/0.0007182, allocations: 90.3 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003449/0.0003451, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2386, allocations: 47.57 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00166/0.2403, allocations: 1.398 MB / 376.5 MB, free: 44.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005573/0.2409, allocations: 272 kB / 376.7 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.45e-05/0.241, allocations: 3.312 kB / 376.7 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001043/0.2411, allocations: 20.55 kB / 376.8 MB, free: 44.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.387e-05/0.2412, allocations: 16.88 kB / 376.8 MB, free: 44.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003498/0.2415, allocations: 90.89 kB / 376.9 MB, free: 43.99 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003222/0.2419, allocations: 232 kB / 377.1 MB, free: 43.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003571/0.2422, allocations: 167.3 kB / 377.3 MB, free: 43.76 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/0.2423, allocations: 67.42 kB / 377.3 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000144/0.2425, allocations: 77.5 kB / 377.4 MB, free: 43.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.594e-05/0.2425, allocations: 9.875 kB / 377.4 MB, free: 43.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.688e-05/0.2426, allocations: 21.58 kB / 377.4 MB, free: 43.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.959e-05/0.2427, allocations: 41.55 kB / 377.5 MB, free: 43.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.2428, allocations: 104.5 kB / 377.6 MB, free: 43.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002074/0.243, allocations: 157.6 kB / 377.7 MB, free: 43.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.243, allocations: 0 / 377.7 MB, free: 43.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.243, allocations: 1.281 kB / 377.7 MB, free: 43.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.2431, allocations: 0 / 377.7 MB, free: 43.41 MB / 298.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.0007133/0.2438, allocations: 448.3 kB / 378.2 MB, free: 42.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/0.2438, allocations: 9.5 kB / 378.2 MB, free: 42.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.49e-05/0.2439, allocations: 24.69 kB / 378.2 MB, free: 42.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002891/0.2442, allocations: 238.6 kB / 378.4 MB, free: 42.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.138e-05/0.2443, allocations: 21.94 kB / 378.5 MB, free: 42.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.878e-05/0.2444, allocations: 30 kB / 378.5 MB, free: 42.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005468/0.2449, allocations: 270.4 kB / 378.7 MB, free: 42.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.2449, allocations: 4.125 kB / 378.8 MB, free: 42.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.891e-05/0.245, allocations: 18.27 kB / 378.8 MB, free: 42.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.245, allocations: 5.75 kB / 378.8 MB, free: 42.47 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002903/0.2453, allocations: 161.2 kB / 378.9 MB, free: 42.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000991/0.2463, allocations: 0.972 MB / 379.9 MB, free: 41.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002891/0.2466, allocations: 151.8 kB / 380.1 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/0.2467, allocations: 72.39 kB / 380.1 MB, free: 41.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.255e-05/0.2468, allocations: 6.156 kB / 380.1 MB, free: 41.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002434/0.247, allocations: 115.3 kB / 380.2 MB, free: 41.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.684e-06/0.247, allocations: 1 kB / 380.2 MB, free: 41.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004925/0.2475, allocations: 205.8 kB / 380.4 MB, free: 41.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.626e-05/0.2476, allocations: 55.28 kB / 380.5 MB, free: 41.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.2477, allocations: 158.6 kB / 380.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.717e-05/0.2477, allocations: 32.67 kB / 380.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.776e-05/0.2478, allocations: 143.1 kB / 380.8 MB, free: 40.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.755e-05/0.2479, allocations: 64.19 kB / 380.9 MB, free: 40.74 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.296e-05/0.2479, allocations: 9.031 kB / 380.9 MB, free: 40.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.059e-05/0.248, allocations: 334.5 kB / 381.2 MB, free: 40.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.2481, allocations: 61.44 kB / 381.3 MB, free: 40.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.2482, allocations: 137.5 kB / 381.4 MB, free: 40.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002218/0.2485, allocations: 195 kB / 381.6 MB, free: 40.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2485, allocations: 1.188 kB / 381.6 MB, free: 40.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003627/0.2489, allocations: 243.4 kB / 381.8 MB, free: 39.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.2489, allocations: 8.938 kB / 381.9 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.2489, allocations: 1.219 kB / 381.9 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.2489, allocations: 4.344 kB / 381.9 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.2491, allocations: 34.42 kB / 381.9 MB, free: 39.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.2491, allocations: 12.11 kB / 381.9 MB, free: 39.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.878e-05/0.2492, allocations: 24.88 kB / 381.9 MB, free: 39.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.335e-05/0.2492, allocations: 14.38 kB / 381.9 MB, free: 39.93 MB / 298.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.0001354/0.2494, allocations: 162.2 kB / 382.1 MB, free: 39.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.091e-05/0.2494, allocations: 13.75 kB / 382.1 MB, free: 39.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003183/0.2497, allocations: 191.6 kB / 382.3 MB, free: 39.65 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.2497, allocations: 2.688 kB / 382.3 MB, free: 39.65 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.2497, allocations: 5.156 kB / 382.3 MB, free: 39.65 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2498, allocations: 3.984 kB / 382.3 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006189/0.2504, allocations: 0.59 MB / 382.9 MB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.2504, allocations: 0 / 382.9 MB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.826e-05/0.2505, allocations: 19.08 kB / 382.9 MB, free: 39.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.2505, allocations: 5.125 kB / 382.9 MB, free: 39.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.2505, allocations: 6.531 kB / 382.9 MB, free: 39.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.2505, allocations: 5.125 kB / 382.9 MB, free: 39.12 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2505, allocations: 0 / 382.9 MB, free: 39.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002609/0.2508, allocations: 268.5 kB / 383.2 MB, free: 38.92 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.831e-05/0.2508, allocations: 93.14 kB / 383.3 MB, free: 38.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.528e-05/0.2508, allocations: 10.05 kB / 383.3 MB, free: 38.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.595e-05/0.2509, allocations: 4 kB / 383.3 MB, free: 38.81 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.369e-05/0.251, allocations: 21.66 kB / 383.3 MB, free: 38.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.251, allocations: 12.73 kB / 383.3 MB, free: 38.79 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.269e-05/0.2511, allocations: 98.77 kB / 383.4 MB, free: 38.7 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2511, allocations: 0 / 383.4 MB, free: 38.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000285/0.2514, allocations: 50.59 kB / 383.5 MB, free: 38.69 MB / 298.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,transition1.enableFire,step.localActive,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.0001258/0.2515, allocations: 109.6 kB / 383.6 MB, free: 38.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003179/0.2518, allocations: 177.1 kB / 383.8 MB, free: 38.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2519, allocations: 5.5 kB / 383.8 MB, free: 38.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.252, allocations: 86.36 kB / 383.9 MB, free: 38.48 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.2523, allocations: 35.84 kB / 383.9 MB, free: 38.45 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006206/0.2529, allocations: 421.5 kB / 384.3 MB, free: 38.12 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001719/0.2531, allocations: 0.7362 MB / 385 MB, free: 37.4 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.266e-05/0.2532, allocations: 25.11 kB / 385.1 MB, free: 37.39 MB / 298.7 MB Notification: Performance of SimCode: time 3.2e-07/0.2532, allocations: 0 / 385.1 MB, free: 37.39 MB / 298.7 MB Notification: Performance of Templates: time 0.003978/0.2572, allocations: 2.357 MB / 387.4 MB, free: 35.88 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches