Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.738/2.738, allocations: 393.5 MB / 408.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 191 kB / 0.4901 GB, free: 2.215 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.601/1.601, allocations: 223.1 MB / 0.7992 GB, free: 15.64 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 92.33 kB / 0.9396 GB, free: 2.84 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003866/0.0003866, allocations: 13.05 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.303, allocations: 143 MB / 1.229 GB, free: 85.34 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2167/0.5197, allocations: 149.9 MB / 1.376 GB, free: 15.2 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/0.52, allocations: 83.94 kB / 1.376 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.01193/0.5319, allocations: 4.059 MB / 1.38 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.954e-06/0.532, allocations: 0 / 1.38 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.532, allocations: 0 / 1.38 GB, free: 11.05 MB / 0.8855 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.0003902/0.5324, allocations: 343.3 kB / 1.38 GB, free: 10.67 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.5325, allocations: 12.56 kB / 1.38 GB, free: 10.66 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.044e-05/0.5325, allocations: 42.5 kB / 1.38 GB, free: 10.61 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.828e-05/0.5326, allocations: 4 kB / 1.38 GB, free: 10.6 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.5327, allocations: 163 kB / 1.38 GB, free: 10.4 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.5327, allocations: 0 / 1.38 GB, free: 10.4 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.022e-05/0.5327, allocations: 0 / 1.38 GB, free: 10.4 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.987e-05/0.5328, allocations: 29.7 kB / 1.38 GB, free: 10.37 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.5329, allocations: 0 / 1.38 GB, free: 10.37 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.427e-06/0.5329, allocations: 3.984 kB / 1.38 GB, free: 10.36 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.5329, allocations: 0 / 1.38 GB, free: 10.36 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.248e-05/0.5329, allocations: 11.88 kB / 1.38 GB, free: 10.35 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002009/0.5331, allocations: 149.7 kB / 1.38 GB, free: 10.16 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 4.687e-05/0.5332, allocations: 18.58 kB / 1.38 GB, free: 10.13 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005029/0.5337, allocations: 421.6 kB / 1.381 GB, free: 9.625 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/0.5337, allocations: 38.56 kB / 1.381 GB, free: 9.578 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.5338, allocations: 0 / 1.381 GB, free: 9.578 MB / 0.8855 GB Notification: Performance of matching and sorting (n=1): time 0.0001923/0.534, allocations: 37.62 kB / 1.381 GB, free: 9.535 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.346e-05/0.534, allocations: 55.41 kB / 1.381 GB, free: 9.469 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.093e-05/0.534, allocations: 85 kB / 1.381 GB, free: 9.379 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.5341, allocations: 25.7 kB / 1.381 GB, free: 9.348 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 3.792e-05/0.5341, allocations: 80.14 kB / 1.381 GB, free: 9.266 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.02e-05/0.5342, allocations: 0 / 1.381 GB, free: 9.266 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.324e-06/0.5342, allocations: 4.125 kB / 1.381 GB, free: 9.262 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.5343, allocations: 314.8 kB / 1.382 GB, free: 8.945 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.698e-06/0.5343, allocations: 0 / 1.382 GB, free: 8.945 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.029e-05/0.5343, allocations: 4 kB / 1.382 GB, free: 8.941 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.878e-05/0.5344, allocations: 3.953 kB / 1.382 GB, free: 8.938 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.5344, allocations: 0 / 1.382 GB, free: 8.938 MB / 0.8855 GB Notification: Performance of matching and sorting (n=1) (initialization): time 8.439e-05/0.5345, allocations: 45.53 kB / 1.382 GB, free: 8.887 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.5345, allocations: 4 kB / 1.382 GB, free: 8.883 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.5345, allocations: 96 / 1.382 GB, free: 8.883 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.5345, allocations: 4 kB / 1.382 GB, free: 8.879 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.374e-05/0.5346, allocations: 4 kB / 1.382 GB, free: 8.875 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.573e-06/0.5346, allocations: 0 / 1.382 GB, free: 8.875 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.122e-05/0.5346, allocations: 0 / 1.382 GB, free: 8.875 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.5346, allocations: 0 / 1.382 GB, free: 8.875 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.061e-05/0.5347, allocations: 109.8 kB / 1.382 GB, free: 8.758 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.005e-05/0.5347, allocations: 0 / 1.382 GB, free: 8.758 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.776e-05/0.5348, allocations: 48.81 kB / 1.382 GB, free: 8.707 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.5348, allocations: 0 / 1.382 GB, free: 8.707 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.5348, allocations: 0 / 1.382 GB, free: 8.707 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.5348, allocations: 0 / 1.382 GB, free: 8.707 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.83e-05/0.535, allocations: 141.7 kB / 1.382 GB, free: 8.52 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-06/0.535, allocations: 7.891 kB / 1.382 GB, free: 8.512 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.53e-05/0.535, allocations: 15.86 kB / 1.382 GB, free: 8.496 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.535, allocations: 0 / 1.382 GB, free: 8.496 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.535, allocations: 0 / 1.382 GB, free: 8.496 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.535, allocations: 0 / 1.382 GB, free: 8.496 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.535, allocations: 0 / 1.382 GB, free: 8.496 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001024/0.5351, allocations: 61.17 kB / 1.382 GB, free: 8.418 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.331e-05/0.5352, allocations: 85.05 kB / 1.382 GB, free: 8.316 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.045e-05/0.5352, allocations: 0 / 1.382 GB, free: 8.316 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.418e-06/0.5352, allocations: 4 kB / 1.382 GB, free: 8.312 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.432e-05/0.5352, allocations: 4 kB / 1.382 GB, free: 8.309 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-06/0.5352, allocations: 0 / 1.382 GB, free: 8.309 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.381e-05/0.5353, allocations: 75.28 kB / 1.382 GB, free: 8.234 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5353, allocations: 4.031 kB / 1.382 GB, free: 8.23 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002064/0.5355, allocations: 12 kB / 1.382 GB, free: 8.219 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000484/0.536, allocations: 0.6131 MB / 1.383 GB, free: 7.578 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 6.718e-05/0.5361, allocations: 8 kB / 1.383 GB, free: 7.57 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.5361, allocations: 4.094 kB / 1.383 GB, free: 7.566 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 6.543e-06/0.5361, allocations: 0 / 1.383 GB, free: 7.566 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.978e-05/0.5362, allocations: 1.031 kB / 1.383 GB, free: 7.566 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003071/0.5365, allocations: 116.3 kB / 1.383 GB, free: 7.41 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002786/0.5368, allocations: 0.677 MB / 1.383 GB, free: 6.707 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 2.24e-05/0.5368, allocations: 3.984 kB / 1.384 GB, free: 6.703 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.894e-05/0.5368, allocations: 11.44 kB / 1.384 GB, free: 6.691 MB / 0.8855 GB Notification: Performance of SimCode: time 2.164e-06/0.5368, allocations: 64 / 1.384 GB, free: 6.691 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01362/0.5505, allocations: 0.9629 MB / 1.384 GB, free: 5.871 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002642/0.5508, allocations: 199 kB / 1.385 GB, free: 5.625 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.692/2.243, allocations: 2.25 kB / 1.385 GB, free: 5.625 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat does not exist to compare? outputFormat=mat