Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001087/0.001087, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 226.5 MB / 244.7 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000761/0.000761, allocations: 96.67 kB / 296.8 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002325/0.0002325, allocations: 8 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2564, allocations: 51.29 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001346/0.2578, allocations: 1.205 MB / 409.2 MB, free: 26.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005336/0.2583, allocations: 297.2 kB / 409.5 MB, free: 26.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.478e-05/0.2584, allocations: 7.938 kB / 409.5 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001176/0.2586, allocations: 19.8 kB / 409.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.753e-05/0.2586, allocations: 11.86 kB / 409.6 MB, free: 26.15 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003305/0.2589, allocations: 96.55 kB / 409.7 MB, free: 26.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002171/0.2592, allocations: 219.6 kB / 409.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002236/0.2594, allocations: 138 kB / 410 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.578e-05/0.2595, allocations: 64.94 kB / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.782e-05/0.2596, allocations: 75.66 kB / 410.1 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.563e-05/0.2596, allocations: 12 kB / 410.2 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.905e-05/0.2597, allocations: 13.03 kB / 410.2 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.654e-05/0.2597, allocations: 43.83 kB / 410.2 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.817e-05/0.2598, allocations: 101.3 kB / 410.3 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.26, allocations: 152.4 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.26, allocations: 0 / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.26, allocations: 1.375 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.26, allocations: 0 / 410.5 MB, free: 25.25 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.000515/0.2605, allocations: 445.2 kB / 410.9 MB, free: 24.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.2606, allocations: 12.03 kB / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.941e-05/0.2606, allocations: 20.66 kB / 410.9 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001951/0.2608, allocations: 233.3 kB / 411.2 MB, free: 24.47 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.525e-05/0.2609, allocations: 20.94 kB / 411.2 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.145e-05/0.2609, allocations: 24.38 kB / 411.2 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003445/0.2613, allocations: 237.4 kB / 411.4 MB, free: 24.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.2613, allocations: 4.156 kB / 411.4 MB, free: 24.19 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.35e-05/0.2613, allocations: 15.94 kB / 411.5 MB, free: 24.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.2613, allocations: 4 kB / 411.5 MB, free: 24.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000241/0.2616, allocations: 161.6 kB / 411.6 MB, free: 24.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007873/0.2624, allocations: 0.7061 MB / 412.3 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002418/0.2626, allocations: 166.8 kB / 412.5 MB, free: 23.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.2627, allocations: 83.78 kB / 412.6 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.2627, allocations: 4 kB / 412.6 MB, free: 22.99 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002038/0.263, allocations: 124.9 kB / 412.7 MB, free: 22.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.263, allocations: 3.938 kB / 412.7 MB, free: 22.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.000394/0.2634, allocations: 221.1 kB / 412.9 MB, free: 22.63 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.859e-05/0.2634, allocations: 55.39 kB / 413 MB, free: 22.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.2635, allocations: 145.9 kB / 413.1 MB, free: 22.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.2636, allocations: 37.69 kB / 413.1 MB, free: 22.37 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.636e-05/0.2636, allocations: 136.6 kB / 413.3 MB, free: 22.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.499e-05/0.2637, allocations: 55.2 kB / 413.3 MB, free: 22.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.124e-05/0.2637, allocations: 4 kB / 413.3 MB, free: 22.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.304e-05/0.2638, allocations: 330.8 kB / 413.7 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001007/0.2639, allocations: 64.56 kB / 413.7 MB, free: 21.78 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.264, allocations: 128.1 kB / 413.8 MB, free: 21.63 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001954/0.2642, allocations: 171.2 kB / 414 MB, free: 21.44 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2642, allocations: 4 kB / 414 MB, free: 21.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002972/0.2645, allocations: 245.2 kB / 414.3 MB, free: 21.19 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.2646, allocations: 8 kB / 414.3 MB, free: 21.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.2646, allocations: 0 / 414.3 MB, free: 21.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.2646, allocations: 4 kB / 414.3 MB, free: 21.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.2647, allocations: 27.92 kB / 414.3 MB, free: 21.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.629e-06/0.2647, allocations: 4 kB / 414.3 MB, free: 21.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.738e-05/0.2648, allocations: 27.73 kB / 414.3 MB, free: 21.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.743e-05/0.2649, allocations: 16 kB / 414.3 MB, free: 21.1 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.000115/0.265, allocations: 150 kB / 414.5 MB, free: 20.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.051e-05/0.265, allocations: 23.83 kB / 414.5 MB, free: 20.92 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003064/0.2653, allocations: 194.3 kB / 414.7 MB, free: 20.72 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.2653, allocations: 4 kB / 414.7 MB, free: 20.71 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.2654, allocations: 0 / 414.7 MB, free: 20.71 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2654, allocations: 0 / 414.7 MB, free: 20.71 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005544/0.2659, allocations: 0.5761 MB / 415.3 MB, free: 20.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2659, allocations: 4 kB / 415.3 MB, free: 20.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.805e-05/0.266, allocations: 19.92 kB / 415.3 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.266, allocations: 0 / 415.3 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.266, allocations: 8 kB / 415.3 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.266, allocations: 0 / 415.3 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.2661, allocations: 3.938 kB / 415.3 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002371/0.2663, allocations: 279.7 kB / 415.6 MB, free: 19.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.739e-05/0.2663, allocations: 88.95 kB / 415.7 MB, free: 19.65 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.287e-05/0.2664, allocations: 11.92 kB / 415.7 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.156e-05/0.2664, allocations: 8 kB / 415.7 MB, free: 19.63 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.814e-05/0.2665, allocations: 31.89 kB / 415.7 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.2665, allocations: 4 kB / 415.7 MB, free: 19.6 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.258e-05/0.2666, allocations: 95.27 kB / 415.8 MB, free: 19.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2666, allocations: 4 kB / 415.8 MB, free: 19.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002624/0.2669, allocations: 55.75 kB / 415.9 MB, free: 19.45 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.0001182/0.267, allocations: 103.2 kB / 416 MB, free: 19.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000251/0.2672, allocations: 183.9 kB / 416.2 MB, free: 19.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2672, allocations: 0 / 416.2 MB, free: 19.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.2674, allocations: 75.92 kB / 416.2 MB, free: 19.08 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002546/0.2676, allocations: 27.03 kB / 416.3 MB, free: 19.06 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004768/0.2681, allocations: 404.6 kB / 416.7 MB, free: 18.63 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001463/0.2683, allocations: 0.7324 MB / 417.4 MB, free: 17.87 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.338e-05/0.2683, allocations: 23.44 kB / 417.4 MB, free: 17.85 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.2683, allocations: 4 kB / 417.4 MB, free: 17.84 MB / 298.7 MB Notification: Performance of Templates: time 0.003358/0.2717, allocations: 2.315 MB / 419.7 MB, free: 15.54 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches