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.0009932/0.0009932, allocations: 89.97 kB / 15.36 MB, free: 0.7383 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.008576/0.008576, allocations: 174.1 kB / 16.26 MB, free: 6.273 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.991/1.991, allocations: 205.4 MB / 222.4 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.1086/0.1086, allocations: 8.106 MB / 278.8 MB, free: 13.12 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.0006777/0.0006777, allocations: 12 kB / 339 MB, free: 26.57 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1586, allocations: 49.28 MB / 388.3 MB, free: 9.242 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment): time 0.000676/0.1593, allocations: 116.9 kB / 388.4 MB, free: 9.129 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001934/0.1595, allocations: 11.97 kB / 388.4 MB, free: 9.117 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.632e-05/0.1596, allocations: 0 / 388.4 MB, free: 9.117 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.132e-05/0.1596, allocations: 0 / 388.4 MB, free: 9.117 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.696e-06/0.1596, allocations: 0 / 388.4 MB, free: 9.117 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001904/0.1598, allocations: 4 kB / 388.4 MB, free: 9.113 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.574e-05/0.1599, allocations: 7.938 kB / 388.4 MB, free: 9.105 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.457e-05/0.16, allocations: 1.719 kB / 388.4 MB, free: 9.105 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.537e-05/0.16, allocations: 0 / 388.4 MB, free: 9.105 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.744e-05/0.1601, allocations: 4 kB / 388.4 MB, free: 9.102 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.435e-05/0.1601, allocations: 4 kB / 388.4 MB, free: 9.098 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.085e-05/0.1602, allocations: 0 / 388.4 MB, free: 9.098 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.468e-05/0.1602, allocations: 0 / 388.4 MB, free: 9.098 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.26e-05/0.1602, allocations: 29.64 kB / 388.4 MB, free: 9.062 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.92e-05/0.1603, allocations: 7.969 kB / 388.4 MB, free: 9.055 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.1603, allocations: 0 / 388.4 MB, free: 9.055 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1603, allocations: 0 / 388.4 MB, free: 9.055 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.715e-06/0.1604, allocations: 0 / 388.4 MB, free: 9.055 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.0005098/0.1609, allocations: 307.6 kB / 388.7 MB, free: 8.703 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.796e-05/0.161, allocations: 8.094 kB / 388.7 MB, free: 8.695 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.047e-05/0.1611, allocations: 34.75 kB / 388.8 MB, free: 8.652 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.264e-05/0.1611, allocations: 8.938 kB / 388.8 MB, free: 8.645 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.1613, allocations: 164.4 kB / 388.9 MB, free: 8.445 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.1613, allocations: 384 / 389 MB, free: 8.445 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.612e-05/0.1614, allocations: 384 / 389 MB, free: 8.445 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001642/0.1616, allocations: 30.27 kB / 389 MB, free: 8.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.1616, allocations: 3.938 kB / 389 MB, free: 8.406 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.017e-05/0.1616, allocations: 4 kB / 389 MB, free: 8.402 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.1616, allocations: 3.938 kB / 389 MB, free: 8.398 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.342e-05/0.1617, allocations: 3.938 kB / 389 MB, free: 8.395 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004057/0.1621, allocations: 157.7 kB / 389.1 MB, free: 8.191 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.196e-05/0.1621, allocations: 18.61 kB / 389.2 MB, free: 8.164 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.144e-05/0.1622, allocations: 4.859 kB / 389.2 MB, free: 8.156 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.809e-06/0.1622, allocations: 0 / 389.2 MB, free: 8.156 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.1622, allocations: 34.62 kB / 389.2 MB, free: 8.113 MB / 286.1 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.1622, allocations: 0 / 389.2 MB, free: 8.113 MB / 286.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001677/0.1624, allocations: 49.56 kB / 389.3 MB, free: 8.059 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.1625, allocations: 55.34 kB / 389.3 MB, free: 7.992 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.783e-05/0.1625, allocations: 89.86 kB / 389.4 MB, free: 7.895 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.1625, allocations: 25.7 kB / 389.4 MB, free: 7.863 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.321e-05/0.1626, allocations: 80.14 kB / 389.5 MB, free: 7.781 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.659e-05/0.1626, allocations: 7.906 kB / 389.5 MB, free: 7.773 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.7e-05/0.1627, allocations: 9.719 kB / 389.5 MB, free: 7.758 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.1628, allocations: 314.8 kB / 389.8 MB, free: 7.441 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.249e-05/0.1628, allocations: 4.125 kB / 389.8 MB, free: 7.438 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.117e-06/0.1628, allocations: 4 kB / 389.8 MB, free: 7.434 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.597e-05/0.1629, allocations: 12.84 kB / 389.8 MB, free: 7.418 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1629, allocations: 0 / 389.8 MB, free: 7.418 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.228e-05/0.163, allocations: 41.64 kB / 389.9 MB, free: 7.371 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.163, allocations: 4 kB / 389.9 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.163, allocations: 3.938 kB / 389.9 MB, free: 7.363 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.163, allocations: 0 / 389.9 MB, free: 7.363 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.461e-05/0.1631, allocations: 4.094 kB / 389.9 MB, free: 7.359 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.1631, allocations: 7.984 kB / 389.9 MB, free: 7.352 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.382e-05/0.1631, allocations: 0 / 389.9 MB, free: 7.352 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-06/0.1631, allocations: 0 / 389.9 MB, free: 7.352 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 7.99e-05/0.1632, allocations: 113.8 kB / 390 MB, free: 7.23 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.945e-06/0.1632, allocations: 0 / 390 MB, free: 7.23 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.722e-05/0.1632, allocations: 11.06 kB / 390 MB, free: 7.215 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.716e-06/0.1632, allocations: 0 / 390 MB, free: 7.215 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.1633, allocations: 0 / 390 MB, free: 7.215 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1633, allocations: 0 / 390 MB, free: 7.215 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001763/0.1634, allocations: 157.7 kB / 390.2 MB, free: 7.012 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.1635, allocations: 0 / 390.2 MB, free: 7.012 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.511e-05/0.1635, allocations: 3.938 kB / 390.2 MB, free: 7.008 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.1635, allocations: 0 / 390.2 MB, free: 7.008 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.1635, allocations: 3.938 kB / 390.2 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1635, allocations: 0 / 390.2 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1635, allocations: 4 kB / 390.2 MB, free: 7 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001455/0.1637, allocations: 69.06 kB / 390.3 MB, free: 6.914 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.324e-05/0.1637, allocations: 81.09 kB / 390.3 MB, free: 6.816 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.1638, allocations: 3.938 kB / 390.3 MB, free: 6.812 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.239e-05/0.1638, allocations: 0 / 390.3 MB, free: 6.812 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.411e-05/0.1638, allocations: 0 / 390.3 MB, free: 6.812 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.1638, allocations: 0 / 390.3 MB, free: 6.812 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.841e-05/0.1639, allocations: 79.31 kB / 390.4 MB, free: 6.734 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1639, allocations: 0 / 390.4 MB, free: 6.734 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002041/0.1641, allocations: 0 / 390.4 MB, free: 6.734 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.0004977/0.1646, allocations: 0.6049 MB / 391 MB, free: 6.102 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000101/0.1647, allocations: 8 kB / 391 MB, free: 6.094 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.1647, allocations: 0 / 391 MB, free: 6.094 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 1.163e-05/0.1648, allocations: 7.984 kB / 391 MB, free: 6.086 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001808/0.1649, allocations: 224 / 391 MB, free: 6.086 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.1661, allocations: 1.058 MB / 392.1 MB, free: 4.941 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.1664, allocations: 0.6731 MB / 392.8 MB, free: 4.242 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.297e-05/0.1665, allocations: 0 / 392.8 MB, free: 4.242 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.135e-05/0.1665, allocations: 11.44 kB / 392.8 MB, free: 4.23 MB / 286.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1665, allocations: 0 / 392.8 MB, free: 4.23 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01299/0.1795, allocations: 0.7846 MB / 393.6 MB, free: 3.551 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000278/0.1798, allocations: 239 kB / 393.8 MB, free: 3.285 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.043/2.223, allocations: 4.062 kB / 393.8 MB, free: 3.281 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_BasicEquations_SimpleExample_FirstOrderExperiment_fmu --startTime=0 --stopTime=8 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_BasicEquations_SimpleExample_FirstOrderExperiment.fmu > ModelicaByExample_ModelicaByExample.BasicEquations.SimpleExample.FirstOrderExperiment.pipe 2>&1)