Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.987/1.987, allocations: 387.1 MB / 399.7 MB, free: 9.484 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.000981/0.000981, allocations: 175.2 kB / 492.3 MB, free: 0.6289 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.286/1.286, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.0009924/0.0009925, allocations: 95.02 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.621e-05/2.623e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2152/0.2152, allocations: 142.3 MB / 1.212 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6998/0.9151, allocations: 149.8 MB / 1.359 GB, free: 19.08 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002008/0.9153, allocations: 70.69 kB / 1.359 GB, free: 19.08 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01127/0.9266, allocations: 4.357 MB / 1.363 GB, free: 34.54 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.352e-06/0.9267, allocations: 0 / 1.363 GB, free: 34.54 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.59e-06/0.9267, allocations: 0 / 1.363 GB, free: 34.54 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003205/0.927, allocations: 372 kB / 1.363 GB, free: 34.18 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.927, allocations: 7.719 kB / 1.363 GB, free: 34.18 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.225e-05/0.9271, allocations: 34.19 kB / 1.364 GB, free: 34.14 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.541e-05/0.9271, allocations: 8.5 kB / 1.364 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.715e-05/0.9272, allocations: 164.4 kB / 1.364 GB, free: 33.93 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.9272, allocations: 11.83 kB / 1.364 GB, free: 33.93 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.894e-06/0.9273, allocations: 0 / 1.364 GB, free: 33.93 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.653e-05/0.9273, allocations: 40.36 kB / 1.364 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.9274, allocations: 0 / 1.364 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.9274, allocations: 3.906 kB / 1.364 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.9274, allocations: 0 / 1.364 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.948e-05/0.9274, allocations: 11.44 kB / 1.364 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000317/0.9277, allocations: 266.2 kB / 1.364 GB, free: 33.62 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.685e-05/0.9278, allocations: 34.14 kB / 1.364 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.175e-05/0.9278, allocations: 11.55 kB / 1.364 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000473/0.9283, allocations: 464.4 kB / 1.364 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.748e-05/0.9283, allocations: 31.92 kB / 1.365 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.342e-06/0.9284, allocations: 3.938 kB / 1.365 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001436/0.9285, allocations: 42.06 kB / 1.365 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.762e-05/0.9285, allocations: 51.41 kB / 1.365 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.285e-05/0.9286, allocations: 101.6 kB / 1.365 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.023e-06/0.9286, allocations: 29.64 kB / 1.365 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.249e-05/0.9286, allocations: 89.53 kB / 1.365 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.344e-05/0.9287, allocations: 11.31 kB / 1.365 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-06/0.9287, allocations: 0 / 1.365 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 6.532e-05/0.9287, allocations: 316.5 kB / 1.365 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.641e-05/0.9288, allocations: 6.969 kB / 1.365 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.309e-05/0.9288, allocations: 7.375 kB / 1.365 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.828e-05/0.9288, allocations: 3.844 kB / 1.365 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.9288, allocations: 0 / 1.365 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.512e-05/0.9289, allocations: 49.88 kB / 1.365 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.9289, allocations: 4.969 kB / 1.365 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.9289, allocations: 0 / 1.365 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.9289, allocations: 0 / 1.365 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.197e-05/0.929, allocations: 14.05 kB / 1.365 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.929, allocations: 0 / 1.365 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.597e-05/0.9291, allocations: 10.28 kB / 1.365 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.233e-06/0.9291, allocations: 12.84 kB / 1.365 GB, free: 32.39 MB / 0.8386 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 4.947e-05/0.9292, allocations: 108.9 kB / 1.365 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.9292, allocations: 0 / 1.365 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.174e-05/0.9293, allocations: 51.95 kB / 1.365 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.9293, allocations: 0 / 1.365 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.9293, allocations: 0 / 1.365 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.9293, allocations: 5 kB / 1.365 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001024/0.9294, allocations: 163.6 kB / 1.366 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.9294, allocations: 0 / 1.366 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.639e-05/0.9295, allocations: 14.14 kB / 1.366 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.9295, allocations: 0 / 1.366 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.992e-06/0.9295, allocations: 3.906 kB / 1.366 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.9295, allocations: 1.219 kB / 1.366 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.9295, allocations: 0 / 1.366 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001002/0.9296, allocations: 148.9 kB / 1.366 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.748e-05/0.9297, allocations: 81.14 kB / 1.366 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.171e-05/0.9297, allocations: 9.062 kB / 1.366 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.295e-05/0.9298, allocations: 5.609 kB / 1.366 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.749e-05/0.9298, allocations: 1.547 kB / 1.366 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-06/0.9298, allocations: 3.875 kB / 1.366 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.119e-05/0.9298, allocations: 88.44 kB / 1.366 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9298, allocations: 0 / 1.366 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001966/0.93, allocations: 15.5 kB / 1.366 GB, free: 31.72 MB / 0.8386 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0003468/0.9304, allocations: 0.7001 MB / 1.367 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 6.566e-05/0.9305, allocations: 15.94 kB / 1.367 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.9305, allocations: 0 / 1.367 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.892e-05/0.9305, allocations: 7.406 kB / 1.367 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001477/0.9307, allocations: 7.938 kB / 1.367 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002717/0.9309, allocations: 99.91 kB / 1.367 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002069/0.9312, allocations: 0.6817 MB / 1.367 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.216e-05/0.9312, allocations: 3.812 kB / 1.367 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.621e-05/0.9312, allocations: 11 kB / 1.367 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of SimCode: time 3.3e-07/0.9312, allocations: 0 / 1.367 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01067/0.9419, allocations: 1.3 MB / 1.369 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001276/0.9421, allocations: 148.4 kB / 1.369 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.303/2.245, allocations: 0 / 1.369 GB, free: 29.84 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat does not exist to compare? outputFormat=mat