Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.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/BuildSysPro 3.6.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.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(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="BuildSysPro_BuildSysPro_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.006095/0.006095, allocations: 97.27 kB / 15.73 MB, free: 6.047 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.001343/0.001343, allocations: 196.2 kB / 16.68 MB, free: 5.973 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.511/1.511, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/package.mo): time 1.131/1.131, allocations: 143.3 MB / 433.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 63.91 kB / 0.5954 GB, free: 8.594 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4691/0.471, allocations: 82.03 MB / 0.6755 GB, free: 0.9453 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.RegStep): time 0.001553/0.4726, allocations: 0.5731 MB / 0.676 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000271/0.4729, allocations: 56.44 kB / 0.6761 GB, free: 484 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.401e-05/0.4729, allocations: 7.938 kB / 0.6761 GB, free: 476 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.285e-05/0.4729, allocations: 1.5 kB / 0.6761 GB, free: 476 kB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.494e-06/0.4729, allocations: 0 / 0.6761 GB, free: 476 kB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002422/0.4732, allocations: 4.875 kB / 0.6761 GB, free: 476 kB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.263e-05/0.4733, allocations: 5.453 kB / 0.6761 GB, free: 472 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.133e-05/0.4733, allocations: 0 / 0.6761 GB, free: 472 kB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.332e-05/0.4733, allocations: 1.469 kB / 0.6761 GB, free: 472 kB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.372e-05/0.4734, allocations: 5.141 kB / 0.6761 GB, free: 468 kB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.056e-05/0.4734, allocations: 0 / 0.6761 GB, free: 468 kB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001165/0.4735, allocations: 22.36 kB / 0.6761 GB, free: 456 kB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.144e-05/0.4735, allocations: 7.938 kB / 0.6761 GB, free: 448 kB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.614e-05/0.4735, allocations: 5.094 kB / 0.6761 GB, free: 444 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.276e-05/0.4736, allocations: 13.5 kB / 0.6761 GB, free: 436 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.4736, allocations: 1.406 kB / 0.6761 GB, free: 436 kB / 0.4981 GB Notification: Performance of FrontEnd: time 1.303e-06/0.4736, allocations: 0 / 0.6761 GB, free: 436 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.4736, allocations: 0 / 0.6761 GB, free: 436 kB / 0.4981 GB 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.000269/0.4739, allocations: 314.8 kB / 0.6764 GB, free: 76 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.474, allocations: 9.312 kB / 0.6765 GB, free: 76 kB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.404e-05/0.474, allocations: 32.22 kB / 0.6765 GB, free: 36 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002495/0.4743, allocations: 24.73 kB / 0.6765 GB, free: 20 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001499/0.4744, allocations: 161.5 kB / 0.6767 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.4744, allocations: 384 / 0.6767 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.202e-05/0.4744, allocations: 1.531 kB / 0.6767 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001564/0.4746, allocations: 33.81 kB / 0.6767 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.4746, allocations: 7.922 kB / 0.6767 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.824e-06/0.4746, allocations: 1.062 kB / 0.6767 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.4747, allocations: 0 / 0.6767 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.68e-05/0.4748, allocations: 21.52 kB / 0.6767 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001796/0.4749, allocations: 142.7 kB / 0.6769 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 9.137e-05/0.475, allocations: 22.69 kB / 0.6769 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.587e-05/0.4751, allocations: 11.97 kB / 0.6769 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.4751, allocations: 1.031 kB / 0.6769 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.4752, allocations: 39.53 kB / 0.6769 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.4752, allocations: 0 / 0.6769 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0002681/0.4755, allocations: 48.41 kB / 0.677 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/0.4755, allocations: 52.56 kB / 0.677 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.018e-05/0.4756, allocations: 97.78 kB / 0.6771 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.4756, allocations: 25.7 kB / 0.6771 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 4.055e-05/0.4756, allocations: 81.42 kB / 0.6772 GB, free: 15.17 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.926e-05/0.4757, allocations: 8.078 kB / 0.6772 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.068e-05/0.4757, allocations: 16.03 kB / 0.6772 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000148/0.4759, allocations: 314.8 kB / 0.6775 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.977e-05/0.4759, allocations: 7.609 kB / 0.6776 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.972e-05/0.476, allocations: 3.656 kB / 0.6776 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.507e-05/0.4761, allocations: 14.53 kB / 0.6776 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4761, allocations: 5.438 kB / 0.6776 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001223/0.4762, allocations: 42.31 kB / 0.6776 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.4762, allocations: 5.781 kB / 0.6776 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.4762, allocations: 3.938 kB / 0.6776 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.4763, allocations: 4 kB / 0.6776 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.694e-05/0.4764, allocations: 7.547 kB / 0.6776 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.4764, allocations: 0 / 0.6776 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.123e-05/0.4764, allocations: 1.062 kB / 0.6776 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.4764, allocations: 5 kB / 0.6776 GB, free: 14.75 MB / 0.5137 GB 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.924e-05/0.4765, allocations: 110.9 kB / 0.6778 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.933e-06/0.4765, allocations: 1 kB / 0.6778 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.215e-05/0.4766, allocations: 12.11 kB / 0.6778 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.4766, allocations: 0 / 0.6778 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.4766, allocations: 0 / 0.6778 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.4766, allocations: 0.9062 kB / 0.6778 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001084/0.4767, allocations: 147 kB / 0.6779 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.4767, allocations: 0 / 0.6779 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.236e-05/0.4767, allocations: 11.45 kB / 0.6779 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.4768, allocations: 0 / 0.6779 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.4768, allocations: 4.75 kB / 0.6779 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4768, allocations: 0 / 0.6779 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.4768, allocations: 1.062 kB / 0.6779 GB, free: 14.42 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001504/0.4769, allocations: 66.88 kB / 0.678 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.788e-05/0.477, allocations: 85.12 kB / 0.6781 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.276e-05/0.477, allocations: 4.969 kB / 0.6781 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.092e-05/0.477, allocations: 2.531 kB / 0.6781 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.215e-05/0.4771, allocations: 0 / 0.6781 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.4771, allocations: 5.25 kB / 0.6781 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 3.18e-05/0.4771, allocations: 75.28 kB / 0.6781 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9.1e-08/0.4771, allocations: 0 / 0.6781 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0001739/0.4773, allocations: 1.312 kB / 0.6782 GB, free: 14.16 MB / 0.5137 GB 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.0005119/0.4778, allocations: 0.6124 MB / 0.6787 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001478/0.478, allocations: 11.39 kB / 0.6788 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.478, allocations: 1.344 kB / 0.6788 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 4.83e-05/0.478, allocations: 16.42 kB / 0.6788 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001543/0.4782, allocations: 7.359 kB / 0.6788 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003619/0.4786, allocations: 113.2 kB / 0.6789 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/0.4789, allocations: 0.6713 MB / 0.6795 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.218e-05/0.4789, allocations: 5.25 kB / 0.6796 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.616e-05/0.4789, allocations: 7.438 kB / 0.6796 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of SimCode: time 3.11e-07/0.4789, allocations: 0 / 0.6796 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02393/0.5029, allocations: 0.9599 MB / 0.6805 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.755/8.258, allocations: 4.453 kB / 0.6805 GB, free: 12.11 MB / 0.5137 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.RegStep.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.RegStep_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_RegStep.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)