Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="BuildingSystems_BuildingSystems_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.001131/0.001131, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001155/0.001155, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.166/1.166, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001931/0.001931, allocations: 279 kB / 290.2 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8535/0.8535, allocations: 169.2 MB / 0.4977 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 94.47 kB / 0.5946 GB, free: 28.43 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1243, allocations: 86.98 MB / 0.6796 GB, free: 1.016 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.001443/0.1258, allocations: 0.6374 MB / 0.6802 GB, free: 396 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002111/0.126, allocations: 47.8 kB / 0.6802 GB, free: 348 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.905e-06/0.1261, allocations: 0 / 0.6802 GB, free: 348 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 1.254e-05/0.1261, allocations: 0 / 0.6802 GB, free: 348 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 3.747e-06/0.1261, allocations: 4 kB / 0.6802 GB, free: 344 kB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001473/0.1262, allocations: 16.59 kB / 0.6802 GB, free: 328 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 2.827e-05/0.1263, allocations: 5.719 kB / 0.6803 GB, free: 324 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.822e-05/0.1263, allocations: 0 / 0.6803 GB, free: 324 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.032e-05/0.1263, allocations: 0 / 0.6803 GB, free: 324 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.428e-05/0.1264, allocations: 4 kB / 0.6803 GB, free: 320 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 7.684e-06/0.1264, allocations: 0 / 0.6803 GB, free: 320 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.319e-05/0.1264, allocations: 20.84 kB / 0.6803 GB, free: 300 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.264e-06/0.1265, allocations: 0 / 0.6803 GB, free: 300 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 1.246e-05/0.1265, allocations: 0.7188 kB / 0.6803 GB, free: 300 kB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 6.413e-05/0.1265, allocations: 23.91 kB / 0.6803 GB, free: 276 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1266, allocations: 1.344 kB / 0.6803 GB, free: 276 kB / 478.1 MB Notification: Performance of FrontEnd: time 7.12e-07/0.1266, allocations: 3.938 kB / 0.6803 GB, free: 272 kB / 478.1 MB Notification: Performance of Transformations before backend: time 2.835e-06/0.1266, allocations: 0 / 0.6803 GB, free: 272 kB / 478.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.0002265/0.1268, allocations: 320.3 kB / 0.6806 GB, free: 15.9 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.153e-05/0.1268, allocations: 8.031 kB / 0.6806 GB, free: 15.89 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.92e-05/0.1269, allocations: 35.38 kB / 0.6807 GB, free: 15.85 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002101/0.1271, allocations: 20.91 kB / 0.6807 GB, free: 15.83 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.153e-05/0.1272, allocations: 168.4 kB / 0.6808 GB, free: 15.63 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.963e-06/0.1272, allocations: 384 / 0.6808 GB, free: 15.63 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.032e-06/0.1272, allocations: 384 / 0.6808 GB, free: 15.63 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001039/0.1273, allocations: 34.25 kB / 0.6809 GB, free: 15.59 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.1273, allocations: 3.938 kB / 0.6809 GB, free: 15.59 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.645e-06/0.1273, allocations: 3.984 kB / 0.6809 GB, free: 15.58 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.076e-06/0.1273, allocations: 0 / 0.6809 GB, free: 15.58 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.229e-05/0.1274, allocations: 15.94 kB / 0.6809 GB, free: 15.57 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001089/0.1275, allocations: 154 kB / 0.681 GB, free: 15.37 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.119e-05/0.1276, allocations: 18.61 kB / 0.6811 GB, free: 15.34 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.504e-05/0.1276, allocations: 12.91 kB / 0.6811 GB, free: 15.32 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.104e-05/0.1277, allocations: 0 / 0.6811 GB, free: 15.32 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.549e-05/0.1277, allocations: 34.56 kB / 0.6811 GB, free: 15.28 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.1277, allocations: 0 / 0.6811 GB, free: 15.28 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001871/0.1279, allocations: 57.55 kB / 0.6812 GB, free: 15.22 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.751e-05/0.1279, allocations: 51.41 kB / 0.6812 GB, free: 15.16 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.479e-05/0.1279, allocations: 89.86 kB / 0.6813 GB, free: 15.06 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.128, allocations: 29.7 kB / 0.6813 GB, free: 15.02 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.833e-05/0.128, allocations: 84.2 kB / 0.6814 GB, free: 14.94 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.066e-05/0.128, allocations: 7.938 kB / 0.6814 GB, free: 14.93 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.698e-05/0.128, allocations: 9.719 kB / 0.6814 GB, free: 14.91 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.862e-05/0.1281, allocations: 314.8 kB / 0.6817 GB, free: 14.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.024e-05/0.1282, allocations: 4 kB / 0.6817 GB, free: 14.59 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.64e-05/0.1282, allocations: 7.984 kB / 0.6817 GB, free: 14.59 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.753e-05/0.1283, allocations: 20.92 kB / 0.6817 GB, free: 14.56 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1283, allocations: 0 / 0.6817 GB, free: 14.56 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001063/0.1284, allocations: 49.55 kB / 0.6818 GB, free: 14.51 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.568e-06/0.1284, allocations: 4 kB / 0.6818 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.1284, allocations: 3.938 kB / 0.6818 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.957e-06/0.1285, allocations: 4 kB / 0.6818 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.424e-05/0.1285, allocations: 0 / 0.6818 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.837e-06/0.1285, allocations: 0 / 0.6818 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.282e-05/0.1286, allocations: 7.984 kB / 0.6818 GB, free: 14.49 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.859e-06/0.1286, allocations: 4.031 kB / 0.6818 GB, free: 14.48 MB / 494.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 5.354e-05/0.1286, allocations: 106.5 kB / 0.6819 GB, free: 14.37 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.013e-06/0.1286, allocations: 0 / 0.6819 GB, free: 14.37 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.433e-05/0.1287, allocations: 15.06 kB / 0.6819 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.1287, allocations: 0 / 0.6819 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.1287, allocations: 0 / 0.6819 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-06/0.1287, allocations: 0 / 0.6819 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.185e-05/0.1288, allocations: 145.7 kB / 0.6821 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.1288, allocations: 0 / 0.6821 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.913e-05/0.1288, allocations: 8 kB / 0.6821 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.1288, allocations: 0 / 0.6821 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.1288, allocations: 3.938 kB / 0.6821 GB, free: 14.15 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1288, allocations: 0 / 0.6821 GB, free: 14.15 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.1288, allocations: 0 / 0.6821 GB, free: 14.15 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001223/0.129, allocations: 76.95 kB / 0.6822 GB, free: 14.06 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.779e-05/0.129, allocations: 81.14 kB / 0.6822 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.028e-05/0.129, allocations: 3.938 kB / 0.6822 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.201e-05/0.1291, allocations: 4 kB / 0.6822 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.04e-05/0.1291, allocations: 3.984 kB / 0.6822 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.1291, allocations: 4 kB / 0.6822 GB, free: 13.95 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.01e-05/0.1291, allocations: 75.28 kB / 0.6823 GB, free: 13.87 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1291, allocations: 0 / 0.6823 GB, free: 13.87 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001614/0.1293, allocations: 4 kB / 0.6823 GB, free: 13.87 MB / 494.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.0003223/0.1296, allocations: 0.6085 MB / 0.6829 GB, free: 13.23 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001048/0.1297, allocations: 7.984 kB / 0.6829 GB, free: 13.22 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.1297, allocations: 7.938 kB / 0.6829 GB, free: 13.21 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 3.74e-05/0.1298, allocations: 8.094 kB / 0.6829 GB, free: 13.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001108/0.1299, allocations: 2.531 kB / 0.6829 GB, free: 13.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002575/0.1302, allocations: 112.3 kB / 0.683 GB, free: 13.05 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001744/0.1303, allocations: 0.677 MB / 0.6837 GB, free: 12.35 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.573e-05/0.1304, allocations: 8.047 kB / 0.6837 GB, free: 12.34 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.804e-05/0.1304, allocations: 7.438 kB / 0.6837 GB, free: 12.34 MB / 494.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1304, allocations: 0 / 0.6837 GB, free: 12.34 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.635/1.766, allocations: 0.8226 MB / 0.6845 GB, free: 11.63 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002049/1.766, allocations: 209.9 kB / 0.6847 GB, free: 11.38 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.474/3.24, allocations: 3.938 kB / 0.6847 GB, free: 11.38 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)