Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.RegStep.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(IBPSA.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_RegStep",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.000851/0.000851, allocations: 89.8 kB / 16.02 MB, free: 84 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.001252/0.001252, allocations: 181.8 kB / 16.92 MB, free: 6.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6622/0.6622, allocations: 115.5 MB / 407.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002879/0.000288, allocations: 19.97 kB / 496 MB, free: 6.223 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1509, allocations: 77.53 MB / 0.5601 GB, free: 8.902 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.RegStep): time 0.0008028/0.1518, allocations: 307.8 kB / 0.5604 GB, free: 8.594 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003098/0.1521, allocations: 46.47 kB / 0.5604 GB, free: 8.551 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.137e-05/0.1522, allocations: 0 / 0.5604 GB, free: 8.551 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.371e-05/0.1522, allocations: 4 kB / 0.5604 GB, free: 8.547 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 5.511e-06/0.1522, allocations: 0 / 0.5604 GB, free: 8.547 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000214/0.1524, allocations: 11.98 kB / 0.5604 GB, free: 8.535 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 4.473e-05/0.1525, allocations: 4 kB / 0.5604 GB, free: 8.531 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.706e-05/0.1525, allocations: 7.875 kB / 0.5604 GB, free: 8.523 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.592e-05/0.1526, allocations: 0 / 0.5604 GB, free: 8.523 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.006e-05/0.1526, allocations: 3.984 kB / 0.5604 GB, free: 8.52 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.072e-05/0.1526, allocations: 4 kB / 0.5604 GB, free: 8.516 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001069/0.1527, allocations: 15.98 kB / 0.5604 GB, free: 8.5 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.167e-05/0.1528, allocations: 3.984 kB / 0.5604 GB, free: 8.496 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.851e-05/0.1528, allocations: 33.7 kB / 0.5605 GB, free: 8.457 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 8.589e-05/0.1529, allocations: 15.98 kB / 0.5605 GB, free: 8.441 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1529, allocations: 0 / 0.5605 GB, free: 8.441 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1529, allocations: 0 / 0.5605 GB, free: 8.441 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.1529, allocations: 0 / 0.5605 GB, free: 8.441 MB / 430.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.0002926/0.1532, allocations: 315.6 kB / 0.5608 GB, free: 8.082 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.1533, allocations: 8.031 kB / 0.5608 GB, free: 8.074 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.682e-05/0.1533, allocations: 30.75 kB / 0.5608 GB, free: 8.035 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002625/0.1536, allocations: 20.91 kB / 0.5609 GB, free: 8.016 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.389e-05/0.1537, allocations: 160.4 kB / 0.561 GB, free: 7.82 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.1537, allocations: 4.375 kB / 0.561 GB, free: 7.816 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.308e-06/0.1537, allocations: 384 / 0.561 GB, free: 7.816 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001348/0.1539, allocations: 38.23 kB / 0.561 GB, free: 7.773 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.1539, allocations: 3.938 kB / 0.5611 GB, free: 7.77 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.1539, allocations: 3.984 kB / 0.5611 GB, free: 7.766 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.1539, allocations: 3.938 kB / 0.5611 GB, free: 7.762 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.809e-05/0.154, allocations: 15.92 kB / 0.5611 GB, free: 7.746 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001225/0.1541, allocations: 149.7 kB / 0.5612 GB, free: 7.551 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.505e-05/0.1542, allocations: 22.59 kB / 0.5612 GB, free: 7.52 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.032e-05/0.1543, allocations: 12.92 kB / 0.5613 GB, free: 7.504 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.1543, allocations: 3.938 kB / 0.5613 GB, free: 7.5 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.1543, allocations: 30.56 kB / 0.5613 GB, free: 7.461 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.1543, allocations: 4 kB / 0.5613 GB, free: 7.457 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002232/0.1546, allocations: 57.55 kB / 0.5613 GB, free: 7.395 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.057e-05/0.1546, allocations: 51.41 kB / 0.5614 GB, free: 7.332 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.219e-05/0.1546, allocations: 89.86 kB / 0.5615 GB, free: 7.234 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.1547, allocations: 25.7 kB / 0.5615 GB, free: 7.203 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.45e-05/0.1547, allocations: 80.14 kB / 0.5616 GB, free: 7.121 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.549e-05/0.1547, allocations: 3.906 kB / 0.5616 GB, free: 7.117 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.146e-05/0.1547, allocations: 13.84 kB / 0.5616 GB, free: 7.098 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1549, allocations: 314.8 kB / 0.5619 GB, free: 6.781 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.246e-05/0.1549, allocations: 3.984 kB / 0.5619 GB, free: 6.777 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.752e-05/0.155, allocations: 4 kB / 0.5619 GB, free: 6.773 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.401e-05/0.1551, allocations: 20.84 kB / 0.5619 GB, free: 6.75 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1551, allocations: 3.938 kB / 0.5619 GB, free: 6.746 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001245/0.1552, allocations: 45.73 kB / 0.562 GB, free: 6.695 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.1552, allocations: 6.031 kB / 0.562 GB, free: 6.691 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1552, allocations: 7.938 kB / 0.562 GB, free: 6.684 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.1553, allocations: 0 / 0.562 GB, free: 6.684 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.762e-05/0.1553, allocations: 0 / 0.562 GB, free: 6.684 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.1553, allocations: 4 kB / 0.562 GB, free: 6.68 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.077e-05/0.1554, allocations: 0 / 0.562 GB, free: 6.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.1554, allocations: 3.984 kB / 0.562 GB, free: 6.676 MB / 430.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 (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 prepare postOptimizeDAE: time 7.308e-05/0.1555, allocations: 109.9 kB / 0.5621 GB, free: 6.559 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.038e-05/0.1555, allocations: 4 kB / 0.5621 GB, free: 6.555 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.71e-05/0.1555, allocations: 7.062 kB / 0.5621 GB, free: 6.551 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1555, allocations: 0 / 0.5621 GB, free: 6.551 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1555, allocations: 0 / 0.5621 GB, free: 6.551 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.1555, allocations: 0 / 0.5621 GB, free: 6.551 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001025/0.1556, allocations: 153.7 kB / 0.5623 GB, free: 6.352 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.1557, allocations: 0 / 0.5623 GB, free: 6.352 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.976e-05/0.1557, allocations: 7.938 kB / 0.5623 GB, free: 6.344 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1557, allocations: 4 kB / 0.5623 GB, free: 6.34 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.1557, allocations: 3.938 kB / 0.5623 GB, free: 6.336 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.329e-06/0.1557, allocations: 3.938 kB / 0.5623 GB, free: 6.332 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1557, allocations: 4 kB / 0.5623 GB, free: 6.328 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001325/0.1559, allocations: 61.11 kB / 0.5623 GB, free: 6.25 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.37e-05/0.1559, allocations: 77.39 kB / 0.5624 GB, free: 6.156 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.1559, allocations: 7.938 kB / 0.5624 GB, free: 6.148 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.036e-05/0.156, allocations: 8.031 kB / 0.5624 GB, free: 6.141 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.897e-06/0.156, allocations: 0 / 0.5624 GB, free: 6.141 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.156, allocations: 3.984 kB / 0.5624 GB, free: 6.137 MB / 430.1 MB Notification: Performance of sorting global known variables: time 2.837e-05/0.156, allocations: 79.22 kB / 0.5625 GB, free: 6.059 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.156, allocations: 0 / 0.5625 GB, free: 6.059 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0001699/0.1562, allocations: 4 kB / 0.5625 GB, free: 6.055 MB / 430.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: 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.0004356/0.1566, allocations: 0.6007 MB / 0.5631 GB, free: 5.422 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001331/0.1568, allocations: 11.98 kB / 0.5631 GB, free: 5.41 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1568, allocations: 0 / 0.5631 GB, free: 5.41 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.371e-05/0.1569, allocations: 7.984 kB / 0.5631 GB, free: 5.402 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001335/0.157, allocations: 12.09 kB / 0.5631 GB, free: 5.391 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003168/0.1573, allocations: 108.4 kB / 0.5632 GB, free: 5.246 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002303/0.1576, allocations: 0.6692 MB / 0.5639 GB, free: 4.551 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.657e-05/0.1576, allocations: 11.92 kB / 0.5639 GB, free: 4.539 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.348e-05/0.1576, allocations: 7.438 kB / 0.5639 GB, free: 4.531 MB / 430.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1576, allocations: 4 kB / 0.5639 GB, free: 4.527 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0645/0.2221, allocations: 0.7504 MB / 0.5646 GB, free: 3.914 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002672/0.2224, allocations: 193.1 kB / 0.5648 GB, free: 3.66 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.091/2.313, allocations: 3.938 kB / 0.5648 GB, free: 3.656 MB / 430.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_RegStep.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)