Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",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.00167/0.00167, allocations: 108 kB / 15.6 MB, free: 132 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.001828/0.001828, allocations: 192 kB / 16.53 MB, free: 6.391 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.421/1.421, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00254/0.00254, allocations: 291 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.071/1.071, allocations: 178.6 MB / 0.5073 GB, free: 4.562 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002809/0.002809, allocations: 100.3 kB / 0.6066 GB, free: 24.5 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1539, allocations: 89.14 MB / 0.6936 GB, free: 4.219 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002681/0.1566, allocations: 1.42 MB / 0.695 GB, free: 2.797 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.1579, allocations: 0.7816 MB / 0.6958 GB, free: 2.008 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.615e-05/0.158, allocations: 0 / 0.6958 GB, free: 2.008 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 5.923e-05/0.158, allocations: 3.938 kB / 0.6958 GB, free: 2.004 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.07e-05/0.1581, allocations: 5 kB / 0.6958 GB, free: 2 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005852/0.1587, allocations: 168.6 kB / 0.6959 GB, free: 1.84 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.545e-05/0.1588, allocations: 47.91 kB / 0.696 GB, free: 1.793 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.236e-05/0.1589, allocations: 8.938 kB / 0.696 GB, free: 1.785 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.09e-05/0.1589, allocations: 27.91 kB / 0.696 GB, free: 1.758 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.515e-05/0.159, allocations: 12.64 kB / 0.696 GB, free: 1.746 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.48e-05/0.159, allocations: 4 kB / 0.696 GB, free: 1.742 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003423/0.1594, allocations: 203.7 kB / 0.6962 GB, free: 1.543 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.072e-05/0.1594, allocations: 11.92 kB / 0.6962 GB, free: 1.531 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.143e-05/0.1595, allocations: 19.88 kB / 0.6963 GB, free: 1.512 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002985/0.1598, allocations: 191.6 kB / 0.6964 GB, free: 1.324 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.1598, allocations: 3.938 kB / 0.6964 GB, free: 1.32 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1598, allocations: 0 / 0.6964 GB, free: 1.32 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.127e-06/0.1598, allocations: 0 / 0.6964 GB, free: 1.32 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005061/0.1603, allocations: 430.7 kB / 0.6969 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.1603, allocations: 11.97 kB / 0.6969 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.222e-05/0.1604, allocations: 34.75 kB / 0.6969 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.72e-05/0.1604, allocations: 4.938 kB / 0.6969 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001413/0.1606, allocations: 172.3 kB / 0.6971 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.016e-06/0.1606, allocations: 384 / 0.6971 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.394e-05/0.1606, allocations: 4.375 kB / 0.6971 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001862/0.1608, allocations: 81.78 kB / 0.6972 GB, free: 496 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.1608, allocations: 0 / 0.6972 GB, free: 496 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.1608, allocations: 0 / 0.6972 GB, free: 496 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.466e-06/0.1608, allocations: 3.938 kB / 0.6972 GB, free: 492 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001185/0.161, allocations: 55.91 kB / 0.6972 GB, free: 436 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003958/0.1614, allocations: 276.8 kB / 0.6975 GB, free: 108 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001213/0.1615, allocations: 62.53 kB / 0.6975 GB, free: 36 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.1616, allocations: 44.95 kB / 0.6976 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.887e-06/0.1616, allocations: 0 / 0.6976 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.1617, allocations: 38.56 kB / 0.6976 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1617, allocations: 0 / 0.6976 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003946/0.1621, allocations: 187.1 kB / 0.6978 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.693e-05/0.1621, allocations: 85.09 kB / 0.6979 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.1623, allocations: 122.2 kB / 0.698 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.885e-05/0.1623, allocations: 25.7 kB / 0.698 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.421e-05/0.1623, allocations: 92.12 kB / 0.6981 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.685e-05/0.1624, allocations: 11.84 kB / 0.6981 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.554e-05/0.1624, allocations: 21.72 kB / 0.6981 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1626, allocations: 322.8 kB / 0.6984 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.1627, allocations: 55.97 kB / 0.6985 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.1628, allocations: 59.95 kB / 0.6985 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002518/0.1631, allocations: 197.8 kB / 0.6987 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1631, allocations: 0 / 0.6987 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003131/0.1634, allocations: 221.1 kB / 0.6989 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.916e-05/0.1635, allocations: 59.41 kB / 0.699 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.396e-06/0.1635, allocations: 0 / 0.699 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.1635, allocations: 3.984 kB / 0.699 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.289e-05/0.1635, allocations: 4 kB / 0.699 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.1636, allocations: 0 / 0.699 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.55e-05/0.1636, allocations: 4 kB / 0.699 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.1636, allocations: 4 kB / 0.699 GB, free: 14.38 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cubSpl.i) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0001145/0.1637, allocations: 151.5 kB / 0.6992 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.024e-05/0.1638, allocations: 7.906 kB / 0.6992 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.385e-05/0.1638, allocations: 11.91 kB / 0.6992 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.217e-06/0.1638, allocations: 0 / 0.6992 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1638, allocations: 7.922 kB / 0.6992 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.1638, allocations: 3.938 kB / 0.6992 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001876/0.164, allocations: 169.6 kB / 0.6994 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.164, allocations: 3.984 kB / 0.6994 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.875e-05/0.1641, allocations: 7.938 kB / 0.6994 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.1641, allocations: 0 / 0.6994 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.1641, allocations: 4 kB / 0.6994 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1641, allocations: 4 kB / 0.6994 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1641, allocations: 0 / 0.6994 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003062/0.1644, allocations: 245 kB / 0.6996 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.889e-05/0.1645, allocations: 85.05 kB / 0.6997 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.1645, allocations: 3.984 kB / 0.6997 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.133e-05/0.1646, allocations: 4 kB / 0.6997 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.677e-05/0.1647, allocations: 8 kB / 0.6997 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.775e-06/0.1647, allocations: 8.016 kB / 0.6997 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.713e-05/0.1648, allocations: 99.31 kB / 0.6998 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1648, allocations: 0 / 0.6998 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000315/0.1651, allocations: 56 kB / 0.6999 GB, free: 13.41 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cubSpl.i) * Number of discrete states: 1 (cubSpl.i) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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.000765/0.1659, allocations: 0.8389 MB / 0.7007 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003601/0.1662, allocations: 238.7 kB / 0.7009 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1662, allocations: 0 / 0.7009 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001429/0.1664, allocations: 107.3 kB / 0.701 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002066/0.1666, allocations: 4 kB / 0.701 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001915/0.1685, allocations: 1.746 MB / 0.7027 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003217/0.1689, allocations: 0.6885 MB / 0.7034 GB, free: 9.605 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.35e-05/0.1689, allocations: 0 / 0.7034 GB, free: 9.605 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.184e-05/0.1689, allocations: 17.27 kB / 0.7034 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1689, allocations: 0 / 0.7034 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02336/0.1923, allocations: 2.821 MB / 0.7062 GB, free: 6.93 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.755/7.947, allocations: 6.375 kB / 0.7062 GB, free: 6.926 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1)