Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) Using package ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment,fileNamePrefix="ModelicaByExample_ModelicaByExample_BasicEquations_SimpleExample_FirstOrderExperiment",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment,fileNamePrefix="ModelicaByExample_ModelicaByExample_BasicEquations_SimpleExample_FirstOrderExperiment",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004977/0.004977, allocations: 97.19 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 192.8 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 205.1 MB / 222.5 MB, free: 4.383 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.1241/0.1241, allocations: 8.117 MB / 278 MB, free: 12.93 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001856/0.001856, allocations: 67.91 kB / 386.2 MB, free: 9.551 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.398/0.3999, allocations: 48.29 MB / 434.5 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment): time 0.002066/0.402, allocations: 396.8 kB / 434.8 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001926/0.4023, allocations: 17.44 kB / 434.9 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.477e-05/0.4023, allocations: 0 / 434.9 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.47e-05/0.4024, allocations: 0 / 434.9 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.334e-06/0.4024, allocations: 0 / 434.9 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001674/0.4025, allocations: 9.766 kB / 434.9 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.827e-05/0.4026, allocations: 6.422 kB / 434.9 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.515e-05/0.4027, allocations: 0.6562 kB / 434.9 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.85e-05/0.4027, allocations: 2.578 kB / 434.9 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.239e-05/0.4028, allocations: 0 / 434.9 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.333e-05/0.4028, allocations: 0 / 434.9 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.654e-06/0.4028, allocations: 1.938 kB / 434.9 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.758e-05/0.4028, allocations: 4.688 kB / 434.9 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.7e-05/0.4028, allocations: 0 / 434.9 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 6.145e-05/0.4029, allocations: 2.469 kB / 434.9 MB, free: 7.191 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.4029, allocations: 0 / 434.9 MB, free: 7.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4029, allocations: 0 / 434.9 MB, free: 7.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.453e-05/0.4029, allocations: 4 kB / 434.9 MB, free: 7.188 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003241/0.4033, allocations: 318 kB / 435.2 MB, free: 6.832 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.4033, allocations: 9.406 kB / 435.2 MB, free: 6.832 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.526e-05/0.4034, allocations: 31.36 kB / 435.2 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.783e-05/0.4034, allocations: 0.9375 kB / 435.2 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.609e-05/0.4035, allocations: 163.1 kB / 435.4 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.4035, allocations: 384 / 435.4 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.462e-05/0.4035, allocations: 1.75 kB / 435.4 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.419e-05/0.4036, allocations: 36.53 kB / 435.4 MB, free: 6.559 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.4037, allocations: 3.938 kB / 435.4 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.4037, allocations: 1.891 kB / 435.4 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.4037, allocations: 0 / 435.4 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.429e-05/0.4037, allocations: 2.078 kB / 435.4 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002683/0.404, allocations: 153.2 kB / 435.6 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.098e-05/0.404, allocations: 20.59 kB / 435.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.292e-05/0.4041, allocations: 10.75 kB / 435.6 MB, free: 6.324 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.067e-05/0.4041, allocations: 4 kB / 435.6 MB, free: 6.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.837e-05/0.4041, allocations: 32.64 kB / 435.7 MB, free: 6.281 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.4041, allocations: 0 / 435.7 MB, free: 6.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001465/0.4043, allocations: 40.86 kB / 435.7 MB, free: 6.242 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.259e-05/0.4043, allocations: 52.78 kB / 435.8 MB, free: 6.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.289e-05/0.4043, allocations: 90.89 kB / 435.8 MB, free: 6.082 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.428e-06/0.4043, allocations: 25.7 kB / 435.9 MB, free: 6.051 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.41e-05/0.4044, allocations: 84.27 kB / 435.9 MB, free: 5.965 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.693e-05/0.4044, allocations: 17.25 kB / 436 MB, free: 5.949 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.746e-05/0.4044, allocations: 13.45 kB / 436 MB, free: 5.934 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.904e-05/0.4045, allocations: 311.8 kB / 436.3 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.141e-05/0.4045, allocations: 1.375 kB / 436.3 MB, free: 5.621 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.436e-06/0.4045, allocations: 7.688 kB / 436.3 MB, free: 5.617 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.441e-05/0.4046, allocations: 8.984 kB / 436.3 MB, free: 5.609 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.4046, allocations: 0 / 436.3 MB, free: 5.609 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.368e-05/0.4046, allocations: 46.5 kB / 436.3 MB, free: 5.566 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.4047, allocations: 5.5 kB / 436.4 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.4047, allocations: 3.938 kB / 436.4 MB, free: 5.562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.4047, allocations: 9.359 kB / 436.4 MB, free: 5.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.069e-05/0.4047, allocations: 3.875 kB / 436.4 MB, free: 5.555 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.4047, allocations: 0 / 436.4 MB, free: 5.555 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.363e-05/0.4048, allocations: 1.375 kB / 436.4 MB, free: 5.555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.4048, allocations: 0 / 436.4 MB, free: 5.555 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.486e-05/0.4048, allocations: 111.9 kB / 436.5 MB, free: 5.438 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.141e-05/0.4049, allocations: 5.969 kB / 436.5 MB, free: 5.434 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.285e-05/0.4049, allocations: 8 kB / 436.5 MB, free: 5.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.4049, allocations: 0 / 436.5 MB, free: 5.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.4049, allocations: 1.375 kB / 436.5 MB, free: 5.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.4049, allocations: 0 / 436.5 MB, free: 5.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001295/0.405, allocations: 152.3 kB / 436.6 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.4051, allocations: 2.172 kB / 436.6 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.65e-05/0.4051, allocations: 1.375 kB / 436.6 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.4051, allocations: 0.5625 kB / 436.6 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.4051, allocations: 5.312 kB / 436.7 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.4051, allocations: 4 kB / 436.7 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.4051, allocations: 0.6562 kB / 436.7 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001062/0.4052, allocations: 63.77 kB / 436.7 MB, free: 5.16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.563e-05/0.4053, allocations: 80.17 kB / 436.8 MB, free: 5.066 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.4053, allocations: 3.938 kB / 436.8 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.432e-05/0.4053, allocations: 5.312 kB / 436.8 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.236e-05/0.4053, allocations: 0 / 436.8 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-06/0.4053, allocations: 7.062 kB / 436.8 MB, free: 5.055 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.902e-05/0.4054, allocations: 75.28 kB / 436.9 MB, free: 4.98 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.192e-06/0.4054, allocations: 0 / 436.9 MB, free: 4.98 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002398/0.4056, allocations: 5.312 kB / 436.9 MB, free: 4.977 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.0002699/0.4059, allocations: 0.5992 MB / 437.5 MB, free: 4.371 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.789e-05/0.406, allocations: 10.44 kB / 437.5 MB, free: 4.367 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.406, allocations: 0 / 437.5 MB, free: 4.367 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.657e-06/0.406, allocations: 6.219 kB / 437.5 MB, free: 4.363 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001351/0.4062, allocations: 1.375 kB / 437.5 MB, free: 4.363 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007331/0.4069, allocations: 1.047 MB / 438.6 MB, free: 3.281 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001266/0.407, allocations: 0.6727 MB / 439.2 MB, free: 2.586 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.669e-05/0.4071, allocations: 6.047 kB / 439.2 MB, free: 2.582 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.383e-05/0.4071, allocations: 7.438 kB / 439.2 MB, free: 2.574 MB / 318.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4071, allocations: 0 / 439.2 MB, free: 2.574 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02291/0.43, allocations: 0.9725 MB / 440.2 MB, free: 2.16 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.05/8.48, allocations: 20.58 kB / 440.2 MB, free: 2.145 MB / 318.1 MB (rm -f ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment.pipe ; mkfifo ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment.pipe >> ../files/ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment.sim & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment_res.csv --start-time 0 --stop-time 8 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0032 ModelicaByExample_ModelicaByExample_BasicEquations_SimpleExample_FirstOrderExperiment.fmu > ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment.pipe 2>&1)