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.001099/0.001099, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.409/1.409, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.1186/0.1186, allocations: 8.111 MB / 277.9 MB, free: 13.15 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.001522/0.001522, allocations: 68.36 kB / 337.3 MB, free: 26.43 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0944/0.09593, allocations: 48.3 MB / 385.6 MB, free: 10.08 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment): time 0.001612/0.09759, allocations: 385.5 kB / 386 MB, free: 9.699 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001439/0.09775, allocations: 21.69 kB / 386 MB, free: 9.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.574e-05/0.09778, allocations: 0 / 386 MB, free: 9.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.002e-05/0.09779, allocations: 0 / 386 MB, free: 9.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.278e-06/0.09781, allocations: 4 kB / 386 MB, free: 9.676 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001225/0.09793, allocations: 3.938 kB / 386 MB, free: 9.672 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.519e-05/0.09798, allocations: 3.984 kB / 386 MB, free: 9.668 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.499e-05/0.09803, allocations: 4 kB / 386 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.667e-05/0.09806, allocations: 0 / 386 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.936e-05/0.0981, allocations: 0 / 386 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.186e-05/0.09812, allocations: 0 / 386 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.295e-06/0.09813, allocations: 4 kB / 386 MB, free: 9.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.32e-05/0.09815, allocations: 7.938 kB / 386 MB, free: 9.652 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.75e-05/0.09818, allocations: 0 / 386 MB, free: 9.652 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 4.867e-05/0.09823, allocations: 7.984 kB / 386 MB, free: 9.645 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.09824, allocations: 0 / 386 MB, free: 9.645 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.09825, allocations: 0 / 386 MB, free: 9.645 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.09826, allocations: 0 / 386 MB, free: 9.645 MB / 286.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.0002915/0.09856, allocations: 307.6 kB / 386.3 MB, free: 9.293 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.0986, allocations: 8.031 kB / 386.3 MB, free: 9.285 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.868e-05/0.09864, allocations: 30.75 kB / 386.4 MB, free: 9.246 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.901e-05/0.09866, allocations: 4.938 kB / 386.4 MB, free: 9.242 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.279e-05/0.09875, allocations: 164.4 kB / 386.5 MB, free: 9.043 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.09877, allocations: 8.375 kB / 386.5 MB, free: 9.035 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.127e-05/0.09879, allocations: 384 / 386.5 MB, free: 9.035 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.236e-05/0.09888, allocations: 30.2 kB / 386.6 MB, free: 9 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.0989, allocations: 3.938 kB / 386.6 MB, free: 8.996 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.09891, allocations: 4 kB / 386.6 MB, free: 8.992 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.09893, allocations: 0 / 386.6 MB, free: 8.992 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.938e-05/0.09896, allocations: 0 / 386.6 MB, free: 8.992 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002442/0.09921, allocations: 153.7 kB / 386.7 MB, free: 8.793 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.952e-05/0.09925, allocations: 22.61 kB / 386.7 MB, free: 8.762 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.767e-05/0.09928, allocations: 4.859 kB / 386.7 MB, free: 8.754 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.593e-06/0.09929, allocations: 0 / 386.7 MB, free: 8.754 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.865e-05/0.09931, allocations: 34.5 kB / 386.8 MB, free: 8.711 MB / 286.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.09932, allocations: 0 / 386.8 MB, free: 8.711 MB / 286.1 MB Notification: Performance of matching and sorting (n=1): time 0.000119/0.09944, allocations: 45.75 kB / 386.8 MB, free: 8.66 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/0.09948, allocations: 59.41 kB / 386.9 MB, free: 8.59 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.514e-05/0.09953, allocations: 89.86 kB / 387 MB, free: 8.492 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.09954, allocations: 25.7 kB / 387 MB, free: 8.461 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.493e-05/0.09958, allocations: 84.08 kB / 387.1 MB, free: 8.375 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.11e-05/0.09961, allocations: 3.906 kB / 387.1 MB, free: 8.371 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.798e-05/0.09964, allocations: 13.72 kB / 387.1 MB, free: 8.352 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.341e-05/0.09974, allocations: 314.8 kB / 387.4 MB, free: 8.035 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.233e-05/0.09976, allocations: 4 kB / 387.4 MB, free: 8.031 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.555e-06/0.09977, allocations: 7.984 kB / 387.4 MB, free: 8.023 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.059e-05/0.09981, allocations: 12.8 kB / 387.4 MB, free: 8.008 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.09981, allocations: 0 / 387.4 MB, free: 8.008 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.719e-05/0.09988, allocations: 45.69 kB / 387.5 MB, free: 7.957 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.0999, allocations: 4.625 kB / 387.5 MB, free: 7.953 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.09991, allocations: 3.938 kB / 387.5 MB, free: 7.949 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.09992, allocations: 4 kB / 387.5 MB, free: 7.945 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.376e-05/0.09995, allocations: 0 / 387.5 MB, free: 7.945 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.09996, allocations: 4.094 kB / 387.5 MB, free: 7.941 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.308e-05/0.09998, allocations: 3.984 kB / 387.5 MB, free: 7.938 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.618e-06/0.09999, allocations: 4 kB / 387.5 MB, free: 7.934 MB / 286.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 5.552e-05/0.1001, allocations: 105.8 kB / 387.6 MB, free: 7.82 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.071e-06/0.1001, allocations: 0 / 387.6 MB, free: 7.82 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.846e-05/0.1001, allocations: 11.06 kB / 387.6 MB, free: 7.805 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.1001, allocations: 0 / 387.6 MB, free: 7.805 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1001, allocations: 3.938 kB / 387.6 MB, free: 7.801 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1001, allocations: 4 kB / 387.6 MB, free: 7.797 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.1002, allocations: 153.7 kB / 387.8 MB, free: 7.598 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.1002, allocations: 0 / 387.8 MB, free: 7.598 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.361e-05/0.1003, allocations: 0 / 387.8 MB, free: 7.598 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.1003, allocations: 0 / 387.8 MB, free: 7.598 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-06/0.1003, allocations: 7.938 kB / 387.8 MB, free: 7.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1003, allocations: 0 / 387.8 MB, free: 7.59 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1003, allocations: 0 / 387.8 MB, free: 7.59 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.775e-05/0.1004, allocations: 61.12 kB / 387.8 MB, free: 7.512 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.123e-05/0.1004, allocations: 81.2 kB / 387.9 MB, free: 7.414 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.1005, allocations: 3.938 kB / 387.9 MB, free: 7.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.1e-05/0.1005, allocations: 0 / 387.9 MB, free: 7.41 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.346e-05/0.1005, allocations: 0 / 387.9 MB, free: 7.41 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-06/0.1005, allocations: 4.031 kB / 387.9 MB, free: 7.406 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.397e-05/0.1005, allocations: 75.28 kB / 388 MB, free: 7.332 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.363e-06/0.1005, allocations: 3.938 kB / 388 MB, free: 7.328 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001742/0.1007, allocations: 3.938 kB / 388 MB, free: 7.324 MB / 286.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.0003058/0.101, allocations: 0.6049 MB / 388.6 MB, free: 6.691 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 7.335e-05/0.1011, allocations: 11.98 kB / 388.6 MB, free: 6.68 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1011, allocations: 0 / 388.6 MB, free: 6.68 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 1.016e-05/0.1011, allocations: 7.938 kB / 388.6 MB, free: 6.672 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001284/0.1013, allocations: 0 / 388.6 MB, free: 6.672 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007799/0.1021, allocations: 1.071 MB / 389.7 MB, free: 5.52 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002144/0.1023, allocations: 0.6766 MB / 390.4 MB, free: 4.816 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.785e-05/0.1023, allocations: 0 / 390.4 MB, free: 4.816 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.707e-05/0.1023, allocations: 7.438 kB / 390.4 MB, free: 4.809 MB / 286.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1023, allocations: 0 / 390.4 MB, free: 4.809 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01729/0.1196, allocations: 0.9555 MB / 391.3 MB, free: 3.91 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.674/7.793, allocations: 3.938 kB / 391.3 MB, free: 3.906 MB / 286.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)