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.005205/0.005206, allocations: 99.78 kB / 15.73 MB, free: 6 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.001284/0.001284, allocations: 190 kB / 16.67 MB, free: 5.922 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.447/1.447, allocations: 205.1 MB / 222.6 MB, free: 4.477 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.1089/0.1089, allocations: 8.12 MB / 278 MB, free: 13.07 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.002214/0.002214, allocations: 83.86 kB / 386.2 MB, free: 9.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2829, allocations: 48.3 MB / 434.5 MB, free: 7.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment): time 0.001463/0.2844, allocations: 389.4 kB / 434.8 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001517/0.2846, allocations: 17.69 kB / 434.9 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.183e-05/0.2846, allocations: 0 / 434.9 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.178e-05/0.2846, allocations: 0 / 434.9 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.402e-06/0.2846, allocations: 5.312 kB / 434.9 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001336/0.2848, allocations: 4 kB / 434.9 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.682e-05/0.2848, allocations: 3.359 kB / 434.9 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.287e-05/0.2849, allocations: 2.078 kB / 434.9 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.339e-05/0.2849, allocations: 4.609 kB / 434.9 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.073e-05/0.2849, allocations: 1.375 kB / 434.9 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.073e-05/0.2849, allocations: 0 / 434.9 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.041e-06/0.285, allocations: 0 / 434.9 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.556e-05/0.285, allocations: 10.19 kB / 434.9 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.04e-05/0.285, allocations: 4 kB / 434.9 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 4.836e-05/0.2851, allocations: 2.125 kB / 434.9 MB, free: 7.203 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2851, allocations: 0 / 434.9 MB, free: 7.203 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2851, allocations: 0 / 434.9 MB, free: 7.203 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.2851, allocations: 1.375 kB / 434.9 MB, free: 7.203 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.000256/0.2853, allocations: 312.8 kB / 435.2 MB, free: 6.852 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.2854, allocations: 9.625 kB / 435.2 MB, free: 6.852 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.873e-05/0.2854, allocations: 30.75 kB / 435.2 MB, free: 6.812 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.958e-05/0.2854, allocations: 3.156 kB / 435.2 MB, free: 6.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.764e-05/0.2855, allocations: 161 kB / 435.4 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.2855, allocations: 384 / 435.4 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.22e-05/0.2855, allocations: 1.75 kB / 435.4 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.011e-05/0.2856, allocations: 38.55 kB / 435.4 MB, free: 6.578 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.2856, allocations: 7.922 kB / 435.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-06/0.2857, allocations: 4 kB / 435.5 MB, free: 6.566 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.2857, allocations: 0 / 435.5 MB, free: 6.566 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.815e-05/0.2857, allocations: 2.453 kB / 435.5 MB, free: 6.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002018/0.2859, allocations: 149.1 kB / 435.6 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.577e-05/0.2859, allocations: 20.75 kB / 435.6 MB, free: 6.352 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.336e-05/0.286, allocations: 6.234 kB / 435.6 MB, free: 6.344 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.843e-06/0.286, allocations: 2.172 kB / 435.6 MB, free: 6.344 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.161e-05/0.286, allocations: 38.5 kB / 435.7 MB, free: 6.297 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.286, allocations: 1.375 kB / 435.7 MB, free: 6.297 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001079/0.2861, allocations: 35.69 kB / 435.7 MB, free: 6.262 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.987e-05/0.2861, allocations: 52.78 kB / 435.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.687e-05/0.2861, allocations: 90.38 kB / 435.8 MB, free: 6.102 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.553e-06/0.2862, allocations: 33.64 kB / 435.9 MB, free: 6.062 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.246e-05/0.2862, allocations: 82.06 kB / 436 MB, free: 5.98 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.2862, allocations: 7.891 kB / 436 MB, free: 5.973 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.33e-05/0.2862, allocations: 16.97 kB / 436 MB, free: 5.953 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.009e-05/0.2863, allocations: 313.8 kB / 436.3 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.116e-05/0.2863, allocations: 9.062 kB / 436.3 MB, free: 5.633 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.514e-06/0.2863, allocations: 6.156 kB / 436.3 MB, free: 5.629 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.991e-05/0.2863, allocations: 9.297 kB / 436.3 MB, free: 5.621 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.2863, allocations: 0 / 436.3 MB, free: 5.621 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.6e-05/0.2864, allocations: 38.88 kB / 436.4 MB, free: 5.586 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.2864, allocations: 10.19 kB / 436.4 MB, free: 5.582 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.2864, allocations: 3.938 kB / 436.4 MB, free: 5.578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.2864, allocations: 0 / 436.4 MB, free: 5.578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.503e-05/0.2865, allocations: 4.062 kB / 436.4 MB, free: 5.578 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.2865, allocations: 1.125 kB / 436.4 MB, free: 5.578 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.15e-05/0.2865, allocations: 0.6094 kB / 436.4 MB, free: 5.578 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.37e-06/0.2865, allocations: 1.062 kB / 436.4 MB, free: 5.578 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 4.36e-05/0.2866, allocations: 111.5 kB / 436.5 MB, free: 5.461 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.783e-06/0.2866, allocations: 5.094 kB / 436.5 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.354e-05/0.2866, allocations: 11.91 kB / 436.5 MB, free: 5.449 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.2866, allocations: 0 / 436.5 MB, free: 5.449 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2866, allocations: 1.469 kB / 436.5 MB, free: 5.449 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.2866, allocations: 0.6562 kB / 436.5 MB, free: 5.449 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.104e-05/0.2867, allocations: 153.3 kB / 436.6 MB, free: 5.258 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2867, allocations: 0 / 436.6 MB, free: 5.258 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.311e-05/0.2867, allocations: 2.25 kB / 436.7 MB, free: 5.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.2867, allocations: 0.7969 kB / 436.7 MB, free: 5.258 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.2868, allocations: 5.125 kB / 436.7 MB, free: 5.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.2868, allocations: 0 / 436.7 MB, free: 5.254 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2868, allocations: 0.8438 kB / 436.7 MB, free: 5.254 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.807e-05/0.2868, allocations: 64.3 kB / 436.7 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.484e-05/0.2869, allocations: 79.67 kB / 436.8 MB, free: 5.09 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.708e-06/0.2869, allocations: 3.938 kB / 436.8 MB, free: 5.086 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.105e-05/0.2869, allocations: 1.156 kB / 436.8 MB, free: 5.086 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.468e-05/0.2869, allocations: 0 / 436.8 MB, free: 5.086 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-06/0.2869, allocations: 2.703 kB / 436.8 MB, free: 5.086 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.352e-05/0.2869, allocations: 83.31 kB / 436.9 MB, free: 5.004 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.01e-07/0.287, allocations: 0 / 436.9 MB, free: 5.004 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00017/0.2871, allocations: 5.125 kB / 436.9 MB, free: 5 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.00022/0.2873, allocations: 0.5955 MB / 437.5 MB, free: 4.398 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 7.754e-05/0.2874, allocations: 18.39 kB / 437.5 MB, free: 4.387 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.2874, allocations: 0 / 437.5 MB, free: 4.387 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.568e-06/0.2875, allocations: 7.172 kB / 437.5 MB, free: 4.383 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000128/0.2876, allocations: 0.9688 kB / 437.5 MB, free: 4.383 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006243/0.2882, allocations: 1.048 MB / 438.6 MB, free: 3.301 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000111/0.2883, allocations: 0.6724 MB / 439.2 MB, free: 2.605 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.127e-05/0.2884, allocations: 0.6562 kB / 439.2 MB, free: 2.605 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.35e-05/0.2884, allocations: 8.5 kB / 439.2 MB, free: 2.598 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2884, allocations: 4.031 kB / 439.2 MB, free: 2.594 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02203/0.3104, allocations: 0.9721 MB / 440.2 MB, free: 2.176 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.538/7.848, allocations: 12.94 kB / 440.2 MB, free: 2.168 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)