Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001545/0.001545, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001898/0.001898, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2662, allocations: 50.55 MB / 408.7 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003223/0.2695, allocations: 1.678 MB / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000904/0.2704, allocations: 295.1 kB / 410.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.2706, allocations: 7.938 kB / 410.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001676/0.2708, allocations: 19.75 kB / 410.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.413e-05/0.2709, allocations: 19.73 kB / 410.7 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004578/0.2713, allocations: 123.8 kB / 410.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004368/0.2718, allocations: 267.5 kB / 411.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003726/0.2722, allocations: 194.9 kB / 411.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000134/0.2723, allocations: 87.72 kB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001652/0.2725, allocations: 103.5 kB / 411.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.755e-05/0.2725, allocations: 24 kB / 411.5 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.872e-05/0.2726, allocations: 39.88 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.341e-05/0.2727, allocations: 59.81 kB / 411.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.2728, allocations: 95.53 kB / 411.7 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003546/0.2732, allocations: 261.9 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2732, allocations: 0 / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.457e-06/0.2732, allocations: 4 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.939e-06/0.2733, allocations: 3.938 kB / 412 MB, free: 14.26 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.0008379/0.2741, allocations: 494.4 kB / 412.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.2742, allocations: 16.02 kB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.661e-05/0.2742, allocations: 54.73 kB / 412.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002373/0.2745, allocations: 32.78 kB / 412.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003569/0.2749, allocations: 232 kB / 412.8 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.282e-05/0.2749, allocations: 24.94 kB / 412.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.689e-05/0.275, allocations: 32.38 kB / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004968/0.2755, allocations: 270.5 kB / 413.1 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.345e-05/0.2755, allocations: 3.938 kB / 413.1 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.2755, allocations: 8 kB / 413.1 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.2755, allocations: 4 kB / 413.1 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000313/0.2759, allocations: 161.6 kB / 413.3 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.2772, allocations: 0.9635 MB / 414.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000308/0.2775, allocations: 177.3 kB / 414.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/0.2777, allocations: 81.69 kB / 414.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-05/0.2777, allocations: 4 kB / 414.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002457/0.278, allocations: 148 kB / 414.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.853e-06/0.278, allocations: 0 / 414.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004646/0.2784, allocations: 221.3 kB / 414.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.092e-05/0.2785, allocations: 81.11 kB / 414.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001496/0.2787, allocations: 161.6 kB / 415.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.889e-05/0.2787, allocations: 41.69 kB / 415.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.2788, allocations: 136.8 kB / 415.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.498e-05/0.2789, allocations: 59.66 kB / 415.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.279, allocations: 85.62 kB / 415.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.2792, allocations: 330.8 kB / 415.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001363/0.2793, allocations: 67.75 kB / 415.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.2795, allocations: 136.5 kB / 415.9 MB, free: 9.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000282/0.2798, allocations: 200.2 kB / 416.1 MB, free: 9.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.2798, allocations: 0 / 416.1 MB, free: 9.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000468/0.2803, allocations: 249.3 kB / 416.4 MB, free: 9.504 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.2803, allocations: 8 kB / 416.4 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.2803, allocations: 288 / 416.4 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.2804, allocations: 8 kB / 416.4 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.2805, allocations: 31.92 kB / 416.4 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.786e-05/0.2805, allocations: 11.92 kB / 416.4 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/0.2807, allocations: 31.78 kB / 416.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.491e-05/0.2808, allocations: 8 kB / 416.5 MB, free: 9.406 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.0002204/0.281, allocations: 161.7 kB / 416.6 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.192e-05/0.281, allocations: 15.91 kB / 416.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.636e-05/0.2811, allocations: 16.84 kB / 416.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.2811, allocations: 8 kB / 416.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.2811, allocations: 0 / 416.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.2811, allocations: 3.984 kB / 416.7 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008988/0.282, allocations: 0.5821 MB / 417.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.2821, allocations: 0 / 417.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.343e-05/0.2821, allocations: 15.94 kB / 417.3 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.2822, allocations: 3.938 kB / 417.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.96e-05/0.2822, allocations: 15.92 kB / 417.3 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.2822, allocations: 0 / 417.3 MB, free: 8.516 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2822, allocations: 4 kB / 417.3 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003205/0.2825, allocations: 268.2 kB / 417.6 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.565e-05/0.2826, allocations: 96.94 kB / 417.7 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.451e-05/0.2826, allocations: 3.938 kB / 417.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.923e-05/0.2827, allocations: 8 kB / 417.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.908e-05/0.2828, allocations: 23.97 kB / 417.7 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.2828, allocations: 8 kB / 417.7 MB, free: 8.074 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.831e-05/0.2829, allocations: 102.5 kB / 417.8 MB, free: 7.977 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2829, allocations: 0 / 417.8 MB, free: 7.977 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000298/0.2832, allocations: 47.89 kB / 417.9 MB, free: 7.93 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,step.active,transition1.enableFire,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.00067/0.2839, allocations: 0.8235 MB / 418.7 MB, free: 7.078 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003448/0.2842, allocations: 180.1 kB / 418.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2843, allocations: 0 / 418.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.2844, allocations: 83.83 kB / 418.9 MB, free: 6.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.2847, allocations: 27.92 kB / 419 MB, free: 6.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002489/0.2872, allocations: 2.079 MB / 421 MB, free: 4.57 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003916/0.2876, allocations: 0.7326 MB / 421.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.343e-05/0.2877, allocations: 25.94 kB / 421.8 MB, free: 3.781 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.2878, allocations: 55.42 kB / 421.9 MB, free: 3.727 MB / 334.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2878, allocations: 0 / 421.9 MB, free: 3.727 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02665/0.3145, allocations: 3.503 MB / 425.4 MB, free: 316 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.206/8.52, allocations: 14.11 kB / 425.4 MB, free: 304 kB / 334.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_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_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches