Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001598/0.001598, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001954/0.001954, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001162, allocations: 60.09 kB / 358.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2666, allocations: 50.54 MB / 408.7 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003266/0.2699, allocations: 1.712 MB / 410.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007931/0.2707, allocations: 291.1 kB / 410.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.2708, allocations: 8 kB / 410.7 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001432/0.271, allocations: 27.67 kB / 410.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.371e-05/0.2711, allocations: 19.8 kB / 410.8 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004111/0.2715, allocations: 115.8 kB / 410.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003169/0.2718, allocations: 267.6 kB / 411.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004021/0.2722, allocations: 185.5 kB / 411.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.2724, allocations: 91.7 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.2725, allocations: 99.53 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.281e-05/0.2725, allocations: 24 kB / 411.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.832e-05/0.2726, allocations: 28 kB / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.669e-05/0.2727, allocations: 63.81 kB / 411.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001108/0.2728, allocations: 107.4 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003234/0.2731, allocations: 253.9 kB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.2732, allocations: 4 kB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2732, allocations: 0 / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.2732, allocations: 0 / 412 MB, free: 14.32 MB / 334.1 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.0006487/0.2738, allocations: 498.4 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.2739, allocations: 8.031 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.162e-05/0.2739, allocations: 62.72 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002098/0.2742, allocations: 36.78 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003041/0.2745, allocations: 228 kB / 412.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.477e-05/0.2745, allocations: 24.94 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.2e-05/0.2746, allocations: 32.36 kB / 412.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004175/0.275, allocations: 258.6 kB / 413.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.275, allocations: 11.92 kB / 413.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.815e-05/0.275, allocations: 15.98 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.2751, allocations: 4 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002841/0.2753, allocations: 165.5 kB / 413.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/0.2764, allocations: 0.9558 MB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000279/0.2767, allocations: 180.7 kB / 414.4 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.2769, allocations: 73.7 kB / 414.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.531e-05/0.2769, allocations: 11.98 kB / 414.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002004/0.2771, allocations: 129.1 kB / 414.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.533e-06/0.2771, allocations: 0 / 414.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004081/0.2775, allocations: 226.8 kB / 414.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.638e-05/0.2776, allocations: 81.11 kB / 414.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.2777, allocations: 161.5 kB / 415.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.2778, allocations: 33.7 kB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.2779, allocations: 148.7 kB / 415.3 MB, free: 10.76 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.499e-05/0.2779, allocations: 63.52 kB / 415.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.822e-05/0.278, allocations: 89.34 kB / 415.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.2781, allocations: 322.8 kB / 415.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.2783, allocations: 63.97 kB / 415.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.2784, allocations: 136.5 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002375/0.2787, allocations: 200.3 kB / 416.1 MB, free: 9.824 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.2787, allocations: 4 kB / 416.1 MB, free: 9.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003529/0.279, allocations: 257.3 kB / 416.4 MB, free: 9.562 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.2791, allocations: 8 kB / 416.4 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.2791, allocations: 7.938 kB / 416.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.2791, allocations: 4 kB / 416.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001375/0.2792, allocations: 31.92 kB / 416.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.2793, allocations: 4 kB / 416.5 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.2794, allocations: 19.89 kB / 416.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.2794, allocations: 12 kB / 416.5 MB, free: 9.477 MB / 334.1 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,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,transition2.t_start,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001337/0.2795, allocations: 173.8 kB / 416.7 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.366e-05/0.2796, allocations: 15.91 kB / 416.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.616e-05/0.2796, allocations: 20.83 kB / 416.7 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.2796, allocations: 4 kB / 416.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.2796, allocations: 3.938 kB / 416.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.2797, allocations: 0 / 416.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006648/0.2803, allocations: 0.5821 MB / 417.3 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2803, allocations: 4 kB / 417.3 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.976e-05/0.2804, allocations: 15.98 kB / 417.3 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.2804, allocations: 0 / 417.3 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/0.2804, allocations: 11.94 kB / 417.3 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.2804, allocations: 0 / 417.3 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2805, allocations: 0 / 417.3 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.2807, allocations: 280.1 kB / 417.6 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.575e-05/0.2808, allocations: 85.06 kB / 417.7 MB, free: 8.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.64e-05/0.2808, allocations: 11.94 kB / 417.7 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.025e-05/0.2809, allocations: 7.984 kB / 417.7 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.284e-05/0.281, allocations: 15.98 kB / 417.7 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.281, allocations: 11.98 kB / 417.7 MB, free: 8.133 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.593e-05/0.2811, allocations: 95.27 kB / 417.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2811, allocations: 4 kB / 417.8 MB, free: 8.035 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002809/0.2814, allocations: 51.84 kB / 417.9 MB, free: 7.984 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,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 (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006029/0.282, allocations: 0.8118 MB / 418.7 MB, free: 7.145 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003364/0.2823, allocations: 184 kB / 418.9 MB, free: 6.965 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2823, allocations: 0.5625 kB / 418.9 MB, free: 6.965 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001377/0.2825, allocations: 83.84 kB / 418.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.2828, allocations: 30.11 kB / 419 MB, free: 6.855 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002473/0.2853, allocations: 2.063 MB / 421 MB, free: 4.648 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004203/0.2857, allocations: 0.7326 MB / 421.8 MB, free: 3.887 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.574e-05/0.2858, allocations: 21.94 kB / 421.8 MB, free: 3.859 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/0.2859, allocations: 55.42 kB / 421.8 MB, free: 3.805 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.286, allocations: 0 / 421.8 MB, free: 3.805 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02194/0.3079, allocations: 3.479 MB / 425.3 MB, free: 420 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.759/8.067, allocations: 11.55 kB / 425.3 MB, free: 412 kB / 334.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv --start-time 0 --stop-time 5.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0022 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches