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.001697/0.001697, allocations: 174 kB / 16.72 MB, free: 5.078 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.325/1.325, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007332/0.0007332, allocations: 95.73 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003048/0.0003049, allocations: 16 kB / 327.5 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2331/0.2334, allocations: 47.57 MB / 375.1 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001654/0.2351, allocations: 1.367 MB / 376.4 MB, free: 44.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005595/0.2357, allocations: 275.9 kB / 376.7 MB, free: 44.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.509e-05/0.2358, allocations: 7.562 kB / 376.7 MB, free: 44.14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.878e-05/0.2359, allocations: 19.27 kB / 376.7 MB, free: 44.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.524e-05/0.236, allocations: 6.125 kB / 376.7 MB, free: 44.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003221/0.2363, allocations: 99.64 kB / 376.8 MB, free: 44.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002748/0.2366, allocations: 236.6 kB / 377.1 MB, free: 43.9 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002562/0.2368, allocations: 169.5 kB / 377.2 MB, free: 43.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.315e-05/0.2369, allocations: 72.45 kB / 377.3 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001044/0.237, allocations: 73.84 kB / 377.4 MB, free: 43.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.032e-05/0.2371, allocations: 9.875 kB / 377.4 MB, free: 43.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.834e-05/0.2371, allocations: 16.86 kB / 377.4 MB, free: 43.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.595e-05/0.2372, allocations: 41.67 kB / 377.5 MB, free: 43.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.76e-05/0.2373, allocations: 105.7 kB / 377.6 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001731/0.2375, allocations: 161.3 kB / 377.7 MB, free: 43.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.2375, allocations: 1.125 kB / 377.7 MB, free: 43.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.2375, allocations: 3.984 kB / 377.7 MB, free: 43.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.341e-06/0.2375, allocations: 4 kB / 377.7 MB, free: 43.44 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.0005438/0.238, allocations: 439.6 kB / 378.2 MB, free: 43.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.2381, allocations: 8.781 kB / 378.2 MB, free: 43.01 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.358e-05/0.2382, allocations: 29.11 kB / 378.2 MB, free: 43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002137/0.2384, allocations: 231.5 kB / 378.4 MB, free: 42.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.835e-05/0.2384, allocations: 20.91 kB / 378.4 MB, free: 42.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.08e-05/0.2385, allocations: 34.45 kB / 378.5 MB, free: 42.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005026/0.239, allocations: 269.7 kB / 378.7 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.239, allocations: 5 kB / 378.7 MB, free: 42.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.039e-05/0.2391, allocations: 10.88 kB / 378.7 MB, free: 42.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.2391, allocations: 9.922 kB / 378.8 MB, free: 42.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003389/0.2394, allocations: 164 kB / 378.9 MB, free: 42.44 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001014/0.2404, allocations: 0.9713 MB / 379.9 MB, free: 41.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002719/0.2407, allocations: 150.6 kB / 380 MB, free: 41.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.2409, allocations: 72.45 kB / 380.1 MB, free: 41.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.2409, allocations: 7.312 kB / 380.1 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002326/0.2411, allocations: 123.3 kB / 380.2 MB, free: 41.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 2.465e-06/0.2411, allocations: 0 / 380.2 MB, free: 41.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004101/0.2416, allocations: 206.6 kB / 380.4 MB, free: 41.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.2416, allocations: 63.36 kB / 380.5 MB, free: 41.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.367e-05/0.2417, allocations: 152.2 kB / 380.6 MB, free: 41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.206e-05/0.2417, allocations: 38.52 kB / 380.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.263e-05/0.2418, allocations: 139.3 kB / 380.8 MB, free: 40.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.939e-05/0.2419, allocations: 67.17 kB / 380.9 MB, free: 40.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.259e-05/0.2419, allocations: 10.41 kB / 380.9 MB, free: 40.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.399e-05/0.2419, allocations: 326.8 kB / 381.2 MB, free: 40.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.2421, allocations: 60.25 kB / 381.3 MB, free: 40.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.2422, allocations: 149.6 kB / 381.4 MB, free: 40.28 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002161/0.2424, allocations: 187.6 kB / 381.6 MB, free: 40.13 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.2424, allocations: 0 / 381.6 MB, free: 40.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003482/0.2428, allocations: 244.5 kB / 381.8 MB, free: 40 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.2428, allocations: 9.688 kB / 381.9 MB, free: 40 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.2428, allocations: 10.84 kB / 381.9 MB, free: 40 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.114e-05/0.2429, allocations: 3.781 kB / 381.9 MB, free: 40 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.243, allocations: 37.83 kB / 381.9 MB, free: 39.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.2431, allocations: 3.969 kB / 381.9 MB, free: 39.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.918e-05/0.2432, allocations: 33.48 kB / 381.9 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.275e-05/0.2432, allocations: 14.75 kB / 382 MB, free: 39.95 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.0001099/0.2433, allocations: 153.1 kB / 382.1 MB, free: 39.81 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.86e-05/0.2434, allocations: 10.94 kB / 382.1 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003171/0.2437, allocations: 196.8 kB / 382.3 MB, free: 39.69 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.2437, allocations: 2.344 kB / 382.3 MB, free: 39.69 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.2437, allocations: 1.531 kB / 382.3 MB, free: 39.69 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.2437, allocations: 4 kB / 382.3 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006037/0.2443, allocations: 0.5902 MB / 382.9 MB, free: 39.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.2443, allocations: 0 / 382.9 MB, free: 39.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.168e-05/0.2444, allocations: 23.7 kB / 382.9 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.2444, allocations: 1.594 kB / 382.9 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.2444, allocations: 4.812 kB / 382.9 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.307e-06/0.2445, allocations: 1.031 kB / 382.9 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.2445, allocations: 1.344 kB / 382.9 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002615/0.2447, allocations: 272.6 kB / 383.2 MB, free: 38.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.126e-05/0.2448, allocations: 96.89 kB / 383.3 MB, free: 38.85 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.2448, allocations: 10.33 kB / 383.3 MB, free: 38.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.199e-05/0.2449, allocations: 11.81 kB / 383.3 MB, free: 38.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.712e-05/0.245, allocations: 17.69 kB / 383.3 MB, free: 38.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.732e-05/0.245, allocations: 9.5 kB / 383.3 MB, free: 38.82 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.685e-05/0.245, allocations: 102.1 kB / 383.4 MB, free: 38.74 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2451, allocations: 0 / 383.4 MB, free: 38.74 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002961/0.2454, allocations: 50.75 kB / 383.5 MB, free: 38.72 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,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.0001351/0.2455, allocations: 116.2 kB / 383.6 MB, free: 38.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002974/0.2458, allocations: 185.7 kB / 383.8 MB, free: 38.54 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2458, allocations: 1 kB / 383.8 MB, free: 38.54 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.2459, allocations: 82.98 kB / 383.9 MB, free: 38.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.2462, allocations: 25.05 kB / 383.9 MB, free: 38.49 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005626/0.2468, allocations: 421.6 kB / 384.3 MB, free: 38.15 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001774/0.247, allocations: 0.7403 MB / 385 MB, free: 37.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.491e-05/0.2471, allocations: 25.14 kB / 385.1 MB, free: 37.42 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2471, allocations: 0 / 385.1 MB, free: 37.42 MB / 298.7 MB Notification: Performance of Templates: time 0.003835/0.2509, allocations: 2.37 MB / 387.4 MB, free: 35.88 MB / 298.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/jenkins/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