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.001208/0.001208, 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.001208/0.001208, allocations: 194.7 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.265/1.265, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001967/0.001967, allocations: 278.7 kB / 290.7 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8972/0.8972, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001693/0.001694, allocations: 98.92 kB / 0.5954 GB, free: 27.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1322, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.00173/0.134, allocations: 0.5676 MB / 0.6809 GB, free: 28 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002625/0.1343, allocations: 51.8 kB / 0.6809 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.433e-05/0.1343, allocations: 4 kB / 0.6809 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.211e-05/0.1344, allocations: 0 / 0.6809 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.34e-06/0.1344, allocations: 3.938 kB / 0.6809 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002231/0.1346, allocations: 23.92 kB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.706e-05/0.1346, allocations: 0 / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.317e-05/0.1347, allocations: 3.984 kB / 0.6809 GB, free: 15.94 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.296e-05/0.1347, allocations: 0 / 0.6809 GB, free: 15.94 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.891e-05/0.1347, allocations: 4 kB / 0.6809 GB, free: 15.94 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.967e-05/0.1348, allocations: 0 / 0.6809 GB, free: 15.94 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.813e-05/0.1349, allocations: 19.97 kB / 0.681 GB, free: 15.92 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.077e-06/0.1349, allocations: 0 / 0.681 GB, free: 15.92 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.67e-05/0.1349, allocations: 12 kB / 0.681 GB, free: 15.91 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.004e-05/0.135, allocations: 11.97 kB / 0.681 GB, free: 15.89 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.135, allocations: 0 / 0.681 GB, free: 15.89 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.135, allocations: 0 / 0.681 GB, free: 15.89 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.135, allocations: 0 / 0.681 GB, free: 15.89 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002615/0.1353, allocations: 315.6 kB / 0.6813 GB, free: 15.54 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.1353, allocations: 12.03 kB / 0.6813 GB, free: 15.52 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.104e-05/0.1354, allocations: 30.75 kB / 0.6813 GB, free: 15.48 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002308/0.1356, allocations: 20.91 kB / 0.6813 GB, free: 15.46 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.926e-05/0.1357, allocations: 164.4 kB / 0.6815 GB, free: 15.27 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.013e-05/0.1357, allocations: 384 / 0.6815 GB, free: 15.27 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.067e-06/0.1357, allocations: 4.312 kB / 0.6815 GB, free: 15.26 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000133/0.1359, allocations: 38.19 kB / 0.6815 GB, free: 15.22 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.1359, allocations: 7.938 kB / 0.6816 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.193e-06/0.1359, allocations: 0 / 0.6816 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.1359, allocations: 0 / 0.6816 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.03e-05/0.136, allocations: 11.98 kB / 0.6816 GB, free: 15.2 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000132/0.1361, allocations: 146 kB / 0.6817 GB, free: 15.01 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.588e-05/0.1362, allocations: 22.59 kB / 0.6817 GB, free: 14.98 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.067e-05/0.1363, allocations: 8.922 kB / 0.6817 GB, free: 14.96 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.1363, allocations: 3.984 kB / 0.6817 GB, free: 14.96 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.1363, allocations: 46.48 kB / 0.6818 GB, free: 14.91 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.1363, allocations: 0 / 0.6818 GB, free: 14.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002221/0.1366, allocations: 45.62 kB / 0.6818 GB, free: 14.86 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.1366, allocations: 59.34 kB / 0.6819 GB, free: 14.79 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.203e-05/0.1366, allocations: 89.86 kB / 0.682 GB, free: 14.69 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.135e-05/0.1367, allocations: 25.7 kB / 0.682 GB, free: 14.66 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.15e-05/0.1367, allocations: 80.14 kB / 0.6821 GB, free: 14.57 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.676e-05/0.1367, allocations: 8.047 kB / 0.6821 GB, free: 14.57 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.02e-05/0.1367, allocations: 17.72 kB / 0.6821 GB, free: 14.54 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.798e-05/0.1368, allocations: 310.8 kB / 0.6824 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.701e-05/0.1369, allocations: 0 / 0.6824 GB, free: 14.23 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.183e-05/0.1369, allocations: 7.984 kB / 0.6824 GB, free: 14.22 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.468e-05/0.137, allocations: 24.78 kB / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1371, allocations: 4.062 kB / 0.6824 GB, free: 14.19 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001213/0.1372, allocations: 37.69 kB / 0.6825 GB, free: 14.15 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.1372, allocations: 8 kB / 0.6825 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1372, allocations: 3.938 kB / 0.6825 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.1372, allocations: 0 / 0.6825 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.2e-05/0.1373, allocations: 7.984 kB / 0.6825 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.1373, allocations: 0 / 0.6825 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.282e-05/0.1374, allocations: 0 / 0.6825 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-06/0.1374, allocations: 0 / 0.6825 GB, free: 14.13 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 6.7e-05/0.1374, allocations: 114.5 kB / 0.6826 GB, free: 14.01 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.714e-06/0.1375, allocations: 0 / 0.6826 GB, free: 14.01 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.803e-05/0.1375, allocations: 11.06 kB / 0.6826 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.1375, allocations: 3.984 kB / 0.6826 GB, free: 13.99 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.1375, allocations: 3.938 kB / 0.6826 GB, free: 13.99 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.1375, allocations: 0 / 0.6826 GB, free: 13.99 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.926e-05/0.1376, allocations: 141.7 kB / 0.6827 GB, free: 13.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1376, allocations: 7.938 kB / 0.6827 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.49e-05/0.1377, allocations: 7.984 kB / 0.6828 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.1377, allocations: 0 / 0.6828 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.1377, allocations: 11.94 kB / 0.6828 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1377, allocations: 0 / 0.6828 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1377, allocations: 0 / 0.6828 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001388/0.1378, allocations: 65.03 kB / 0.6828 GB, free: 13.69 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.155e-05/0.1379, allocations: 77.11 kB / 0.6829 GB, free: 13.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.409e-05/0.1379, allocations: 15.95 kB / 0.6829 GB, free: 13.58 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.146e-05/0.1379, allocations: 0 / 0.6829 GB, free: 13.58 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.163e-05/0.1379, allocations: 0 / 0.6829 GB, free: 13.58 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-06/0.138, allocations: 0 / 0.6829 GB, free: 13.58 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.148e-05/0.138, allocations: 75.28 kB / 0.683 GB, free: 13.51 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.138, allocations: 0 / 0.683 GB, free: 13.51 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000175/0.1382, allocations: 4 kB / 0.683 GB, free: 13.5 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.0004091/0.1386, allocations: 0.6123 MB / 0.6836 GB, free: 12.86 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001345/0.1387, allocations: 11.98 kB / 0.6836 GB, free: 12.85 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.1387, allocations: 0 / 0.6836 GB, free: 12.85 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.703e-05/0.1388, allocations: 7.984 kB / 0.6836 GB, free: 12.84 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001231/0.1389, allocations: 4.156 kB / 0.6836 GB, free: 12.84 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003295/0.1393, allocations: 110.7 kB / 0.6837 GB, free: 12.69 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002266/0.1395, allocations: 0.6729 MB / 0.6844 GB, free: 11.99 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.364e-05/0.1395, allocations: 0 / 0.6844 GB, free: 11.99 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.314e-05/0.1396, allocations: 11.44 kB / 0.6844 GB, free: 11.98 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1396, allocations: 0 / 0.6844 GB, free: 11.98 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08063/0.2202, allocations: 0.9333 MB / 0.6853 GB, free: 11.13 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.198/8.418, allocations: 18.05 kB / 0.6853 GB, free: 11.12 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)