Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009891/0.0009891, allocations: 175.1 kB / 16.72 MB, free: 5.059 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.406/1.406, allocations: 205.4 MB / 222.9 MB, free: 9.035 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.0007653/0.0007652, allocations: 93.28 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003284/0.0003285, allocations: 8 kB / 327.5 MB, free: 15.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2128/0.2131, allocations: 47.58 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001432/0.2146, allocations: 1.192 MB / 376.3 MB, free: 44.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005464/0.2152, allocations: 258.1 kB / 376.5 MB, free: 44.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.169e-05/0.2153, allocations: 3.094 kB / 376.5 MB, free: 44.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001005/0.2154, allocations: 19.95 kB / 376.5 MB, free: 44.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.552e-05/0.2154, allocations: 9.047 kB / 376.6 MB, free: 44.24 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003315/0.2158, allocations: 90.44 kB / 376.6 MB, free: 44.17 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002503/0.216, allocations: 236.5 kB / 376.9 MB, free: 44.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002512/0.2163, allocations: 135 kB / 377 MB, free: 43.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.448e-05/0.2164, allocations: 67.78 kB / 377.1 MB, free: 43.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001075/0.2165, allocations: 76.81 kB / 377.1 MB, free: 43.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.977e-05/0.2165, allocations: 10.75 kB / 377.2 MB, free: 43.85 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.686e-05/0.2166, allocations: 16.44 kB / 377.2 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.626e-05/0.2167, allocations: 41.38 kB / 377.2 MB, free: 43.81 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.649e-05/0.2168, allocations: 104.7 kB / 377.3 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001668/0.2169, allocations: 151.4 kB / 377.5 MB, free: 43.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2169, allocations: 0 / 377.5 MB, free: 43.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.592e-06/0.2169, allocations: 0 / 377.5 MB, free: 43.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.217, allocations: 1.094 kB / 377.5 MB, free: 43.61 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005214/0.2175, allocations: 443.6 kB / 377.9 MB, free: 43.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.2175, allocations: 9.094 kB / 377.9 MB, free: 43.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.811e-05/0.2176, allocations: 23.34 kB / 377.9 MB, free: 43.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002084/0.2178, allocations: 223.3 kB / 378.1 MB, free: 42.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.63e-05/0.2179, allocations: 24.38 kB / 378.2 MB, free: 42.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.56e-05/0.2179, allocations: 25.38 kB / 378.2 MB, free: 42.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003821/0.2183, allocations: 244.2 kB / 378.4 MB, free: 42.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.2183, allocations: 192 / 378.4 MB, free: 42.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.363e-05/0.2183, allocations: 14.28 kB / 378.4 MB, free: 42.72 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.2184, allocations: 6.25 kB / 378.5 MB, free: 42.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002732/0.2186, allocations: 161 kB / 378.6 MB, free: 42.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008443/0.2195, allocations: 0.713 MB / 379.3 MB, free: 42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002849/0.2198, allocations: 166.7 kB / 379.5 MB, free: 41.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.2199, allocations: 79.95 kB / 379.6 MB, free: 41.87 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/0.22, allocations: 6.375 kB / 379.6 MB, free: 41.86 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002271/0.2202, allocations: 121 kB / 379.7 MB, free: 41.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.014e-06/0.2202, allocations: 0 / 379.7 MB, free: 41.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.000428/0.2206, allocations: 214.2 kB / 379.9 MB, free: 41.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.2207, allocations: 63.34 kB / 380 MB, free: 41.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.292e-05/0.2208, allocations: 147.7 kB / 380.1 MB, free: 41.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.2208, allocations: 38.11 kB / 380.1 MB, free: 41.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.583e-05/0.2209, allocations: 134 kB / 380.3 MB, free: 41.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.649e-05/0.2209, allocations: 67.17 kB / 380.3 MB, free: 41.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.073e-05/0.2209, allocations: 5.469 kB / 380.3 MB, free: 41.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.411e-05/0.221, allocations: 322.4 kB / 380.7 MB, free: 40.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.2211, allocations: 65.5 kB / 380.7 MB, free: 40.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001402/0.2212, allocations: 127.5 kB / 380.8 MB, free: 40.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002139/0.2215, allocations: 176.5 kB / 381 MB, free: 40.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2215, allocations: 0 / 381 MB, free: 40.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003826/0.2219, allocations: 241.2 kB / 381.3 MB, free: 40.51 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.2219, allocations: 12.48 kB / 381.3 MB, free: 40.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.2219, allocations: 1.969 kB / 381.3 MB, free: 40.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.2219, allocations: 3.062 kB / 381.3 MB, free: 40.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.2221, allocations: 31.8 kB / 381.3 MB, free: 40.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.2221, allocations: 4.156 kB / 381.3 MB, free: 40.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.2222, allocations: 32.84 kB / 381.3 MB, free: 40.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.059e-05/0.2223, allocations: 13.7 kB / 381.4 MB, free: 40.46 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.000126/0.2224, allocations: 158.9 kB / 381.5 MB, free: 40.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.077e-05/0.2224, allocations: 13.22 kB / 381.5 MB, free: 40.31 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000318/0.2227, allocations: 199.4 kB / 381.7 MB, free: 40.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-06/0.2228, allocations: 3.25 kB / 381.7 MB, free: 40.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.2228, allocations: 4 kB / 381.7 MB, free: 40.19 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.2228, allocations: 0 / 381.7 MB, free: 40.19 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006257/0.2234, allocations: 0.5725 MB / 382.3 MB, free: 39.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2234, allocations: 0 / 382.3 MB, free: 39.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.409e-05/0.2235, allocations: 16.61 kB / 382.3 MB, free: 39.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.2235, allocations: 1.031 kB / 382.3 MB, free: 39.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.2235, allocations: 9.219 kB / 382.3 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.2235, allocations: 1.062 kB / 382.3 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2235, allocations: 5.406 kB / 382.3 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002564/0.2238, allocations: 278.8 kB / 382.6 MB, free: 39.49 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.539e-05/0.2238, allocations: 85.39 kB / 382.7 MB, free: 39.39 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.404e-05/0.2239, allocations: 5.469 kB / 382.7 MB, free: 39.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.939e-05/0.224, allocations: 13.8 kB / 382.7 MB, free: 39.38 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.01e-05/0.224, allocations: 25.72 kB / 382.7 MB, free: 39.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.839e-05/0.2241, allocations: 14.39 kB / 382.7 MB, free: 39.36 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.788e-05/0.2241, allocations: 87.91 kB / 382.8 MB, free: 39.28 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2241, allocations: 3.938 kB / 382.8 MB, free: 39.28 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002881/0.2244, allocations: 53.7 kB / 382.9 MB, free: 39.26 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0001393/0.2246, allocations: 113.5 kB / 383 MB, free: 39.15 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003011/0.2249, allocations: 178.5 kB / 383.2 MB, free: 39.08 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2249, allocations: 4.062 kB / 383.2 MB, free: 39.08 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.225, allocations: 82.06 kB / 383.3 MB, free: 39.05 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.2253, allocations: 20.77 kB / 383.3 MB, free: 39.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005608/0.2259, allocations: 413.8 kB / 383.7 MB, free: 38.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001441/0.226, allocations: 0.7307 MB / 384.4 MB, free: 37.99 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.028e-05/0.2261, allocations: 20.94 kB / 384.4 MB, free: 37.98 MB / 298.7 MB Notification: Performance of SimCode: time 4.71e-07/0.2261, allocations: 4.875 kB / 384.4 MB, free: 37.98 MB / 298.7 MB Notification: Performance of Templates: time 0.00367/0.2298, allocations: 2.309 MB / 386.7 MB, free: 36.61 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches