Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.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.RegNonZeroPowerDerivative_2_Check,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check",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.573/2.573, allocations: 393.5 MB / 408.4 MB, free: 11 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.001109/0.001109, allocations: 182.5 kB / 0.4901 GB, free: 2.23 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.545/1.545, allocations: 223.1 MB / 0.7992 GB, free: 14.72 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.0009392/0.0009394, allocations: 88.33 kB / 0.9396 GB, free: 1.895 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003774/0.0003774, allocations: 11.81 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.331, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2051/0.5362, allocations: 150.2 MB / 1.376 GB, free: 3.199 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002768/0.5365, allocations: 75.95 kB / 1.376 GB, free: 3.125 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01583/0.5524, allocations: 5.123 MB / 1.381 GB, free: 13.99 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.635e-06/0.5524, allocations: 0 / 1.381 GB, free: 13.99 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.05e-05/0.5525, allocations: 0 / 1.381 GB, free: 13.99 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005865/0.5531, allocations: 375.2 kB / 1.381 GB, free: 13.58 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.078e-05/0.5531, allocations: 12.03 kB / 1.381 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.464e-05/0.5532, allocations: 34.56 kB / 1.381 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.584e-05/0.5533, allocations: 7.906 kB / 1.381 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.5535, allocations: 167 kB / 1.382 GB, free: 13.31 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.5535, allocations: 4 kB / 1.382 GB, free: 13.31 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.062e-05/0.5535, allocations: 8 kB / 1.382 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001677/0.5537, allocations: 45.67 kB / 1.382 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.5537, allocations: 0 / 1.382 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.5538, allocations: 4 kB / 1.382 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.5538, allocations: 0 / 1.382 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.812e-05/0.5538, allocations: 31.86 kB / 1.382 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002624/0.5541, allocations: 165.6 kB / 1.382 GB, free: 13 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.5543, allocations: 54.56 kB / 1.382 GB, free: 12.94 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007812/0.5551, allocations: 465.5 kB / 1.382 GB, free: 12.39 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.361e-05/0.5551, allocations: 38.55 kB / 1.382 GB, free: 12.35 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 3.166e-06/0.5551, allocations: 0 / 1.382 GB, free: 12.35 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.001458/0.5566, allocations: 0.5993 MB / 1.383 GB, free: 11.66 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.818e-05/0.5566, allocations: 51.47 kB / 1.383 GB, free: 11.59 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.747e-05/0.5567, allocations: 93 kB / 1.383 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.5568, allocations: 25.7 kB / 1.383 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 4.158e-05/0.5568, allocations: 84.08 kB / 1.383 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.68e-05/0.5569, allocations: 43.45 kB / 1.383 GB, free: 11.34 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-06/0.5569, allocations: 0 / 1.383 GB, free: 11.34 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.557, allocations: 330.8 kB / 1.384 GB, free: 11 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.832e-05/0.557, allocations: 16 kB / 1.384 GB, free: 10.99 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.975e-05/0.5571, allocations: 23.98 kB / 1.384 GB, free: 10.96 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.152e-05/0.5571, allocations: 23.5 kB / 1.384 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.5572, allocations: 4 kB / 1.384 GB, free: 10.94 MB / 0.8855 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001697/0.5573, allocations: 97.59 kB / 1.384 GB, free: 10.84 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.5574, allocations: 7.984 kB / 1.384 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.5574, allocations: 0 / 1.384 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.5574, allocations: 3.938 kB / 1.384 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.5575, allocations: 24 kB / 1.384 GB, free: 10.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.5575, allocations: 0 / 1.384 GB, free: 10.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.494e-05/0.5576, allocations: 0 / 1.384 GB, free: 10.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.5576, allocations: 7.984 kB / 1.384 GB, free: 10.8 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 (13): * Single equations (assignments): 13 * 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 0.0001061/0.5577, allocations: 122.6 kB / 1.384 GB, free: 10.67 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.613e-05/0.5577, allocations: 0 / 1.384 GB, free: 10.67 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002053/0.5579, allocations: 105.5 kB / 1.384 GB, free: 10.56 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.558, allocations: 96 / 1.384 GB, free: 10.56 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.558, allocations: 3.938 kB / 1.384 GB, free: 10.55 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.558, allocations: 7.984 kB / 1.384 GB, free: 10.55 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000434/0.5584, allocations: 358.4 kB / 1.384 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.5584, allocations: 3.938 kB / 1.384 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/0.5585, allocations: 16 kB / 1.384 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.5586, allocations: 4 kB / 1.384 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.723e-05/0.5586, allocations: 0 / 1.384 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.5586, allocations: 4 kB / 1.384 GB, free: 10.11 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.5586, allocations: 3.984 kB / 1.384 GB, free: 10.11 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002749/0.5589, allocations: 219.4 kB / 1.385 GB, free: 9.879 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.894e-05/0.559, allocations: 89 kB / 1.385 GB, free: 9.773 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.825e-05/0.559, allocations: 4.031 kB / 1.385 GB, free: 9.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.254e-05/0.5591, allocations: 0 / 1.385 GB, free: 9.77 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.312e-05/0.5591, allocations: 15.92 kB / 1.385 GB, free: 9.754 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.097e-06/0.5591, allocations: 4 kB / 1.385 GB, free: 9.75 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.589e-05/0.5592, allocations: 75.28 kB / 1.385 GB, free: 9.676 MB / 0.8855 GB Notification: Performance of sort global known variables: time 6.72e-07/0.5592, allocations: 0 / 1.385 GB, free: 9.676 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003293/0.5595, allocations: 63.92 kB / 1.385 GB, free: 9.613 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_y_comp) * 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 (11): * Single equations (assignments): 11 * 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.0007544/0.5603, allocations: 0.8063 MB / 1.386 GB, free: 8.777 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001484/0.5604, allocations: 59.86 kB / 1.386 GB, free: 8.719 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5604, allocations: 0 / 1.386 GB, free: 8.719 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 5.148e-05/0.5605, allocations: 40.47 kB / 1.386 GB, free: 8.68 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001461/0.5606, allocations: 6.719 kB / 1.386 GB, free: 8.676 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008769/0.5615, allocations: 0.5242 MB / 1.386 GB, free: 8.098 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002598/0.5618, allocations: 0.6887 MB / 1.387 GB, free: 7.383 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.495e-05/0.5619, allocations: 19.92 kB / 1.387 GB, free: 7.363 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.386e-05/0.5619, allocations: 19.44 kB / 1.387 GB, free: 7.348 MB / 0.8855 GB Notification: Performance of SimCode: time 2.21e-07/0.5619, allocations: 0 / 1.387 GB, free: 7.348 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01518/0.5771, allocations: 2.164 MB / 1.389 GB, free: 5.363 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002305/0.5774, allocations: 225.6 kB / 1.389 GB, free: 5.109 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.576/2.153, allocations: 1.828 kB / 1.389 GB, free: 5.109 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat does not exist to compare? outputFormat=mat