Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001009/0.001009, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 226.6 MB / 244.3 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008446/0.0008446, allocations: 112.1 kB / 296.4 MB, free: 6.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002564/0.0002563, allocations: 11.94 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2502, allocations: 51.3 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001651/0.2519, allocations: 1.382 MB / 408.9 MB, free: 26.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000754/0.2527, allocations: 307.2 kB / 409.2 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001599/0.2528, allocations: 7.938 kB / 409.2 MB, free: 26.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001291/0.253, allocations: 19.86 kB / 409.2 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.085e-05/0.253, allocations: 15.42 kB / 409.2 MB, free: 26.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003929/0.2534, allocations: 83.91 kB / 409.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002715/0.2537, allocations: 239.5 kB / 409.5 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002731/0.254, allocations: 144.9 kB / 409.7 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.457e-05/0.2541, allocations: 71.7 kB / 409.7 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001037/0.2542, allocations: 79.56 kB / 409.8 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.64e-05/0.2543, allocations: 8 kB / 409.8 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.643e-05/0.2543, allocations: 19.98 kB / 409.8 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.49e-05/0.2544, allocations: 41.86 kB / 409.9 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.666e-05/0.2544, allocations: 57.58 kB / 409.9 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001662/0.2546, allocations: 159.6 kB / 410.1 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.2546, allocations: 0 / 410.1 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.2546, allocations: 4 kB / 410.1 MB, free: 25.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.814e-06/0.2546, allocations: 0.8438 kB / 410.1 MB, free: 25.2 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.0005655/0.2552, allocations: 462.4 kB / 410.6 MB, free: 24.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.2553, allocations: 8.031 kB / 410.6 MB, free: 24.69 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.805e-05/0.2553, allocations: 19.81 kB / 410.6 MB, free: 24.67 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000222/0.2556, allocations: 230.7 kB / 410.8 MB, free: 24.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.687e-05/0.2556, allocations: 20.56 kB / 410.8 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.735e-05/0.2556, allocations: 39.94 kB / 410.9 MB, free: 24.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003852/0.256, allocations: 271 kB / 411.1 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.2561, allocations: 0 / 411.1 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.322e-05/0.2561, allocations: 12 kB / 411.1 MB, free: 24.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.2561, allocations: 8 kB / 411.1 MB, free: 24.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002608/0.2564, allocations: 165.6 kB / 411.3 MB, free: 23.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009478/0.2573, allocations: 0.9791 MB / 412.3 MB, free: 22.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002399/0.2576, allocations: 173.9 kB / 412.5 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.626e-05/0.2577, allocations: 80.92 kB / 412.5 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.2577, allocations: 4.188 kB / 412.5 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001993/0.2579, allocations: 142.8 kB / 412.7 MB, free: 22.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.443e-06/0.2579, allocations: 0 / 412.7 MB, free: 22.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003653/0.2583, allocations: 229 kB / 412.9 MB, free: 22.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/0.2584, allocations: 89.09 kB / 413 MB, free: 22.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.243e-05/0.2585, allocations: 152.9 kB / 413.1 MB, free: 21.92 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.2585, allocations: 37.7 kB / 413.2 MB, free: 21.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.369e-05/0.2586, allocations: 140.6 kB / 413.3 MB, free: 21.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.912e-05/0.2586, allocations: 71.17 kB / 413.4 MB, free: 21.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.027e-05/0.2586, allocations: 4 kB / 413.4 MB, free: 21.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.224e-05/0.2587, allocations: 326.8 kB / 413.7 MB, free: 21.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.993e-05/0.2588, allocations: 63.91 kB / 413.8 MB, free: 21.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/0.2589, allocations: 144.3 kB / 413.9 MB, free: 21.1 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001136/0.259, allocations: 67.92 kB / 414 MB, free: 21.03 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.259, allocations: 0 / 414 MB, free: 21.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003193/0.2594, allocations: 261.8 kB / 414.2 MB, free: 20.77 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.2594, allocations: 4 kB / 414.2 MB, free: 20.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.2594, allocations: 4 kB / 414.2 MB, free: 20.76 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.2594, allocations: 7.953 kB / 414.2 MB, free: 20.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.2596, allocations: 31.86 kB / 414.3 MB, free: 20.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.2596, allocations: 7.984 kB / 414.3 MB, free: 20.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.692e-05/0.2597, allocations: 36.03 kB / 414.3 MB, free: 20.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.599e-05/0.2597, allocations: 8 kB / 414.3 MB, free: 20.67 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: 32 ($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,$PRE.transition2.t_start,transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.0001076/0.2599, allocations: 166.4 kB / 414.5 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.275e-05/0.2599, allocations: 11.81 kB / 414.5 MB, free: 20.49 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002836/0.2602, allocations: 198.3 kB / 414.7 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.2602, allocations: 3.953 kB / 414.7 MB, free: 20.28 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2602, allocations: 0 / 414.7 MB, free: 20.28 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.2602, allocations: 11.98 kB / 414.7 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005212/0.2607, allocations: 0.5836 MB / 415.3 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.2608, allocations: 3.953 kB / 415.3 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.5e-05/0.2608, allocations: 15.98 kB / 415.3 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.2608, allocations: 0 / 415.3 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.2609, allocations: 8 kB / 415.3 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.2609, allocations: 11.92 kB / 415.3 MB, free: 19.58 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.2609, allocations: 11.94 kB / 415.3 MB, free: 19.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002288/0.2611, allocations: 280.5 kB / 415.6 MB, free: 19.28 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.469e-05/0.2611, allocations: 92.91 kB / 415.7 MB, free: 19.17 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.31e-05/0.2612, allocations: 8 kB / 415.7 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.256e-05/0.2612, allocations: 7.984 kB / 415.7 MB, free: 19.15 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.639e-05/0.2613, allocations: 23.97 kB / 415.7 MB, free: 19.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.2613, allocations: 8 kB / 415.8 MB, free: 19.12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.738e-05/0.2614, allocations: 103.2 kB / 415.9 MB, free: 19.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2614, allocations: 0 / 415.9 MB, free: 19.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002656/0.2617, allocations: 51.84 kB / 415.9 MB, free: 18.97 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001232/0.2618, allocations: 106.9 kB / 416 MB, free: 18.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002674/0.2621, allocations: 188.4 kB / 416.2 MB, free: 18.67 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.502e-06/0.2621, allocations: 4.062 kB / 416.2 MB, free: 18.67 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.2622, allocations: 83.86 kB / 416.3 MB, free: 18.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000269/0.2625, allocations: 27.91 kB / 416.3 MB, free: 18.56 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005083/0.263, allocations: 421.5 kB / 416.7 MB, free: 18.11 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000148/0.2631, allocations: 0.7406 MB / 417.5 MB, free: 17.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.065e-05/0.2632, allocations: 19.44 kB / 417.5 MB, free: 17.33 MB / 298.7 MB Notification: Performance of SimCode: time 1.9e-07/0.2632, allocations: 0 / 417.5 MB, free: 17.33 MB / 298.7 MB Notification: Performance of Templates: time 0.003492/0.2667, allocations: 2.398 MB / 419.9 MB, free: 14.94 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches