Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.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.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",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.017/2.017, allocations: 390.5 MB / 398 MB, free: 10.95 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.0009395/0.0009395, allocations: 172.8 kB / 491.2 MB, free: 1.57 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.361/1.361, allocations: 221.5 MB / 0.7868 GB, free: 13.34 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.0008453/0.0008453, allocations: 91.94 kB / 0.9269 GB, free: 13.84 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.801e-05/1.805e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2205/0.2206, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.72/0.9406, allocations: 149.3 MB / 1.358 GB, free: 17.68 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001998/0.9408, allocations: 78.27 kB / 1.358 GB, free: 17.68 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0117/0.9526, allocations: 4.562 MB / 1.363 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.603e-06/0.9526, allocations: 1.125 kB / 1.363 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.243e-06/0.9526, allocations: 3.844 kB / 1.363 GB, free: 33.13 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0004144/0.9531, allocations: 343.9 kB / 1.363 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/0.9531, allocations: 7.781 kB / 1.363 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.193e-05/0.9532, allocations: 7.375 kB / 1.363 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.9534, allocations: 167 kB / 1.363 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.9534, allocations: 0 / 1.363 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.893e-05/0.9534, allocations: 1.547 kB / 1.363 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.481e-05/0.9535, allocations: 3.812 kB / 1.363 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.711e-05/0.9536, allocations: 39.2 kB / 1.363 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.9536, allocations: 0 / 1.363 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.9536, allocations: 4 kB / 1.363 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.9536, allocations: 3.938 kB / 1.363 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001611/0.9538, allocations: 136.3 kB / 1.363 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.173e-05/0.9538, allocations: 24.11 kB / 1.363 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.982e-05/0.9539, allocations: 8.703 kB / 1.364 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006008/0.9545, allocations: 462.9 kB / 1.364 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.9545, allocations: 32.11 kB / 1.364 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 2.365e-06/0.9545, allocations: 0 / 1.364 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0006281/0.9552, allocations: 241.7 kB / 1.364 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.19e-05/0.9552, allocations: 51.41 kB / 1.364 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.9553, allocations: 93 kB / 1.364 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.9553, allocations: 29.61 kB / 1.364 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.565e-05/0.9554, allocations: 80.14 kB / 1.364 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.504e-05/0.9554, allocations: 5.734 kB / 1.364 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.996e-06/0.9554, allocations: 0 / 1.364 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.9555, allocations: 316.3 kB / 1.365 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.486e-05/0.9556, allocations: 3.969 kB / 1.365 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.402e-05/0.9556, allocations: 13.66 kB / 1.365 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.587e-05/0.9556, allocations: 20.84 kB / 1.365 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.9557, allocations: 3.953 kB / 1.365 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001017/0.9558, allocations: 47.89 kB / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.9558, allocations: 3.969 kB / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.9558, allocations: 0 / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.9558, allocations: 0 / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.294e-05/0.9559, allocations: 12.42 kB / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.9559, allocations: 0 / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.945e-05/0.9559, allocations: 9.453 kB / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.9559, allocations: 3.875 kB / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 7.082e-05/0.956, allocations: 101 kB / 1.365 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.328e-05/0.9561, allocations: 44.53 kB / 1.365 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.679e-05/0.9561, allocations: 3.844 kB / 1.365 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001377/0.9563, allocations: 54.64 kB / 1.365 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.9563, allocations: 7.875 kB / 1.365 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.9563, allocations: 4 kB / 1.365 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.9563, allocations: 0 / 1.365 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.004e-05/0.9564, allocations: 137.5 kB / 1.365 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.9564, allocations: 0 / 1.365 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.18e-05/0.9565, allocations: 5.531 kB / 1.365 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.9565, allocations: 3.938 kB / 1.365 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.9565, allocations: 3.938 kB / 1.365 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.9565, allocations: 0 / 1.365 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.9565, allocations: 0 / 1.365 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000139/0.9566, allocations: 79.52 kB / 1.365 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.367e-05/0.9567, allocations: 82.66 kB / 1.365 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.373e-05/0.9567, allocations: 3.875 kB / 1.365 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.392e-05/0.9567, allocations: 0 / 1.365 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.425e-05/0.9567, allocations: 1.594 kB / 1.365 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.9568, allocations: 0 / 1.365 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.006e-05/0.9568, allocations: 83 kB / 1.365 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of sort global known variables: time 9.72e-07/0.9568, allocations: 0 / 1.365 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002242/0.957, allocations: 36.94 kB / 1.365 GB, free: 30.29 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0004994/0.9575, allocations: 0.6462 MB / 1.366 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 7.902e-05/0.9576, allocations: 16.77 kB / 1.366 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.9576, allocations: 0 / 1.366 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.263e-05/0.9577, allocations: 10.94 kB / 1.366 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001125/0.9578, allocations: 5.406 kB / 1.366 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003288/0.9581, allocations: 127.5 kB / 1.366 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.9584, allocations: 0.6804 MB / 1.367 GB, free: 28.86 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.254e-05/0.9584, allocations: 1.172 kB / 1.367 GB, free: 28.86 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.927e-05/0.9584, allocations: 11.12 kB / 1.367 GB, free: 28.85 MB / 0.8386 GB Notification: Performance of SimCode: time 4.01e-07/0.9584, allocations: 0 / 1.367 GB, free: 28.85 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01743/0.9759, allocations: 1.18 MB / 1.368 GB, free: 28.76 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001394/0.9761, allocations: 173.1 kB / 1.368 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.317/2.293, allocations: 0 / 1.368 GB, free: 28.57 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat does not exist to compare? outputFormat=mat