Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_1_0-beta_om_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.001377/0.001377, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001417/0.001417, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.482/1.482, allocations: 227.7 MB / 247.2 MB, free: 10.14 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001993, allocations: 63.91 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.3026, allocations: 50.55 MB / 409 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003022/0.3057, allocations: 1.684 MB / 410.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007842/0.3065, allocations: 295.1 kB / 411 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001043/0.3066, allocations: 0 / 411 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001539/0.3068, allocations: 35.67 kB / 411.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.362e-05/0.3068, allocations: 15.81 kB / 411.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004354/0.3073, allocations: 119.8 kB / 411.2 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003766/0.3077, allocations: 267.6 kB / 411.4 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003635/0.308, allocations: 190.9 kB / 411.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001205/0.3082, allocations: 87.66 kB / 411.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001588/0.3083, allocations: 107.5 kB / 411.8 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.348e-05/0.3084, allocations: 24 kB / 411.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.958e-05/0.3085, allocations: 28 kB / 411.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.199e-05/0.3086, allocations: 63.81 kB / 411.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.3087, allocations: 99.53 kB / 412 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003496/0.309, allocations: 257.9 kB / 412.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.309, allocations: 0 / 412.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.818e-06/0.3091, allocations: 3.938 kB / 412.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.3091, allocations: 3.938 kB / 412.3 MB, free: 14.11 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.0007528/0.3098, allocations: 0.4906 MB / 412.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.3099, allocations: 8.031 kB / 412.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.174e-05/0.31, allocations: 66.66 kB / 412.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002447/0.3102, allocations: 36.78 kB / 412.9 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003551/0.3106, allocations: 232.1 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.844e-05/0.3106, allocations: 20.94 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.448e-05/0.3107, allocations: 28.38 kB / 413.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004636/0.3111, allocations: 266.5 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.3112, allocations: 11.94 kB / 413.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.472e-05/0.3112, allocations: 11.98 kB / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.3112, allocations: 12 kB / 413.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003085/0.3115, allocations: 161.6 kB / 413.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.3128, allocations: 0.9596 MB / 414.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003029/0.3131, allocations: 173.2 kB / 414.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.3132, allocations: 82.91 kB / 414.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.3132, allocations: 4 kB / 414.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002316/0.3135, allocations: 137 kB / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.753e-06/0.3135, allocations: 0 / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004529/0.314, allocations: 221.3 kB / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.658e-05/0.314, allocations: 89.09 kB / 415.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/0.3142, allocations: 157.8 kB / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.78e-05/0.3142, allocations: 41.69 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.3144, allocations: 136.8 kB / 415.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.768e-05/0.3144, allocations: 59.53 kB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.3145, allocations: 85.62 kB / 415.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.3147, allocations: 330.8 kB / 416.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.3148, allocations: 63.75 kB / 416.1 MB, free: 9.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.315, allocations: 144.5 kB / 416.3 MB, free: 9.809 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002657/0.3153, allocations: 192.3 kB / 416.5 MB, free: 9.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3153, allocations: 0 / 416.5 MB, free: 9.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003827/0.3157, allocations: 249.4 kB / 416.7 MB, free: 9.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.3157, allocations: 7.938 kB / 416.7 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.3157, allocations: 4 kB / 416.7 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.171e-05/0.3158, allocations: 4 kB / 416.7 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.3159, allocations: 35.91 kB / 416.8 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.3159, allocations: 7.938 kB / 416.8 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.316, allocations: 27.78 kB / 416.8 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.3161, allocations: 16 kB / 416.8 MB, free: 9.238 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.0001661/0.3162, allocations: 165.9 kB / 417 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.436e-05/0.3163, allocations: 15.91 kB / 417 MB, free: 9.051 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.238e-05/0.3163, allocations: 16.84 kB / 417 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.3163, allocations: 0 / 417 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.3163, allocations: 4 kB / 417 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.443e-06/0.3164, allocations: 3.984 kB / 417 MB, free: 9.027 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007531/0.3171, allocations: 0.5862 MB / 417.6 MB, free: 8.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.3171, allocations: 0 / 417.6 MB, free: 8.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.041e-05/0.3172, allocations: 23.88 kB / 417.6 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3172, allocations: 0 / 417.6 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.3172, allocations: 7.922 kB / 417.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.3172, allocations: 4 kB / 417.6 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3173, allocations: 0 / 417.6 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003117/0.3176, allocations: 264.2 kB / 417.9 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.682e-05/0.3176, allocations: 96.94 kB / 418 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.976e-05/0.3177, allocations: 15.94 kB / 418 MB, free: 7.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.346e-05/0.3178, allocations: 12 kB / 418 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.53e-05/0.3179, allocations: 23.91 kB / 418 MB, free: 7.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.3179, allocations: 4 kB / 418 MB, free: 7.898 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.118e-05/0.318, allocations: 102.2 kB / 418.1 MB, free: 7.801 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.318, allocations: 0 / 418.1 MB, free: 7.801 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000325/0.3183, allocations: 51.89 kB / 418.2 MB, free: 7.75 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.0006729/0.319, allocations: 0.8212 MB / 419 MB, free: 6.902 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003333/0.3193, allocations: 176.1 kB / 419.2 MB, free: 6.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3193, allocations: 0 / 419.2 MB, free: 6.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.3195, allocations: 84.28 kB / 419.3 MB, free: 6.648 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/0.3198, allocations: 28.03 kB / 419.3 MB, free: 6.621 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002404/0.3222, allocations: 2.074 MB / 421.4 MB, free: 4.406 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.3226, allocations: 0.7365 MB / 422.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.249e-05/0.3227, allocations: 25.94 kB / 422.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.3228, allocations: 55.42 kB / 422.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3228, allocations: 0 / 422.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02645/0.3493, allocations: 3.505 MB / 425.7 MB, free: 164 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.852/8.201, allocations: 10.7 kB / 425.7 MB, free: 156 kB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)