Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.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,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001245/0.001245, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002099/0.002099, allocations: 205.2 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.424/1.424, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.001918/0.001918, allocations: 67.89 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2963/0.2982, allocations: 50.55 MB / 409 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002609/0.3009, allocations: 1.502 MB / 410.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006475/0.3016, allocations: 271.2 kB / 410.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.781e-05/0.3017, allocations: 4 kB / 410.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000127/0.3018, allocations: 23.73 kB / 410.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.16e-05/0.3019, allocations: 15.81 kB / 410.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003683/0.3022, allocations: 115.8 kB / 411 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003196/0.3026, allocations: 255.6 kB / 411.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003056/0.3029, allocations: 173.8 kB / 411.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.303, allocations: 83.77 kB / 411.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.3031, allocations: 99.53 kB / 411.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.567e-05/0.3032, allocations: 20 kB / 411.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.82e-05/0.3033, allocations: 39.98 kB / 411.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.753e-05/0.3034, allocations: 43.91 kB / 411.7 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.3035, allocations: 103.5 kB / 411.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003289/0.3038, allocations: 245.9 kB / 412 MB, free: 14.42 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3038, allocations: 0 / 412 MB, free: 14.42 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3039, allocations: 0 / 412 MB, free: 14.42 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.3039, allocations: 0 / 412 MB, free: 14.42 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007214/0.3046, allocations: 486.2 kB / 412.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.3046, allocations: 15.97 kB / 412.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.909e-05/0.3047, allocations: 62.73 kB / 412.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002503/0.305, allocations: 32.81 kB / 412.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00033/0.3053, allocations: 224.1 kB / 412.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.091e-05/0.3054, allocations: 28.86 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.084e-05/0.3054, allocations: 28.38 kB / 412.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004177/0.3058, allocations: 240 kB / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.3059, allocations: 3.938 kB / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.379e-05/0.3059, allocations: 8 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.3059, allocations: 8 kB / 413.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002929/0.3062, allocations: 153.7 kB / 413.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.3072, allocations: 0.6897 MB / 414 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003048/0.3075, allocations: 178.8 kB / 414.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.3077, allocations: 78.14 kB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.3077, allocations: 7.938 kB / 414.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001963/0.3079, allocations: 119.3 kB / 414.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.442e-06/0.3079, allocations: 0 / 414.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004164/0.3083, allocations: 213.4 kB / 414.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.488e-05/0.3084, allocations: 55.41 kB / 414.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.3085, allocations: 150 kB / 414.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.613e-05/0.3086, allocations: 37.7 kB / 414.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.3087, allocations: 128.9 kB / 414.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.069e-05/0.3088, allocations: 67.48 kB / 415 MB, free: 11.22 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.3089, allocations: 70.02 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.3091, allocations: 326.8 kB / 415.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.3092, allocations: 60.62 kB / 415.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.3094, allocations: 136.1 kB / 415.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002581/0.3096, allocations: 174.6 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3096, allocations: 0 / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003808/0.31, allocations: 237.3 kB / 416 MB, free: 10.17 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.3101, allocations: 8 kB / 416 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.3101, allocations: 0 / 416 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.3101, allocations: 8.219 kB / 416 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.3102, allocations: 39.86 kB / 416 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.3103, allocations: 7.938 kB / 416 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.537e-05/0.3104, allocations: 27.78 kB / 416 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.332e-05/0.3104, allocations: 15.98 kB / 416.1 MB, free: 10.06 MB / 334.1 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,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001606/0.3106, allocations: 149.7 kB / 416.2 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.992e-05/0.3106, allocations: 15.94 kB / 416.2 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.241e-05/0.3107, allocations: 20.83 kB / 416.2 MB, free: 9.871 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.3107, allocations: 8 kB / 416.2 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.3107, allocations: 0 / 416.2 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.3107, allocations: 3.938 kB / 416.2 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008052/0.3115, allocations: 0.5484 MB / 416.8 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3115, allocations: 0 / 416.8 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.777e-05/0.3116, allocations: 19.98 kB / 416.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.3116, allocations: 0 / 416.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.879e-05/0.3116, allocations: 4 kB / 416.8 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.3116, allocations: 3.938 kB / 416.8 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3116, allocations: 4 kB / 416.8 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003576/0.312, allocations: 267.9 kB / 417.1 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.12e-05/0.3121, allocations: 92.98 kB / 417.2 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.034e-05/0.3121, allocations: 8 kB / 417.2 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.963e-05/0.3122, allocations: 4 kB / 417.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.182e-05/0.3123, allocations: 27.91 kB / 417.2 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.3123, allocations: 4 kB / 417.2 MB, free: 8.797 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.073e-05/0.3124, allocations: 110.8 kB / 417.3 MB, free: 8.691 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3124, allocations: 0 / 417.3 MB, free: 8.691 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002971/0.3127, allocations: 47.84 kB / 417.4 MB, free: 8.645 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,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 (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0006733/0.3134, allocations: 0.8009 MB / 418.2 MB, free: 7.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003346/0.3137, allocations: 176.3 kB / 418.4 MB, free: 7.648 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3138, allocations: 0 / 418.4 MB, free: 7.648 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001424/0.3139, allocations: 87.7 kB / 418.4 MB, free: 7.562 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002933/0.3142, allocations: 19.94 kB / 418.5 MB, free: 7.543 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002286/0.3165, allocations: 1.994 MB / 420.5 MB, free: 5.422 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004229/0.3169, allocations: 0.7323 MB / 421.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.178e-05/0.317, allocations: 21.95 kB / 421.2 MB, free: 4.645 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.3172, allocations: 59.41 kB / 421.3 MB, free: 4.586 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3172, allocations: 3.938 kB / 421.3 MB, free: 4.582 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02526/0.3424, allocations: 3.406 MB / 424.7 MB, free: 1.262 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.77/8.112, allocations: 3.984 kB / 424.7 MB, free: 1.258 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_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.fmu > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)