Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.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.RegStep,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegStep",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 1.989/1.989, allocations: 390.3 MB / 402.8 MB, free: 6.691 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.001173/0.001173, allocations: 180.9 kB / 496.1 MB, free: 12.9 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.251/1.251, allocations: 221.3 MB / 0.7915 GB, free: 5.461 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.0007961/0.0007962, allocations: 95.95 kB / 0.9317 GB, free: 5.777 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.854e-05/2.856e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2095/0.2096, allocations: 143 MB / 1.219 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7362/0.9458, allocations: 149.3 MB / 1.365 GB, free: 4.762 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002395/0.9461, allocations: 79.25 kB / 1.365 GB, free: 4.715 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001264/0.9474, allocations: 0.5323 MB / 1.365 GB, free: 4.207 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.834e-06/0.9474, allocations: 0 / 1.365 GB, free: 4.207 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.474e-06/0.9474, allocations: 4 kB / 1.365 GB, free: 4.203 MB / 0.823 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.0002118/0.9476, allocations: 315.6 kB / 1.366 GB, free: 3.855 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.9477, allocations: 12.09 kB / 1.366 GB, free: 3.844 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.479e-05/0.9477, allocations: 30.56 kB / 1.366 GB, free: 3.805 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.9479, allocations: 15.97 kB / 1.366 GB, free: 3.789 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.1e-05/0.948, allocations: 163 kB / 1.366 GB, free: 3.59 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.948, allocations: 7.938 kB / 1.366 GB, free: 3.582 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.835e-06/0.948, allocations: 0 / 1.366 GB, free: 3.582 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.227e-05/0.9481, allocations: 37.14 kB / 1.366 GB, free: 3.543 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.9481, allocations: 0 / 1.366 GB, free: 3.543 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.665e-06/0.9481, allocations: 0 / 1.366 GB, free: 3.543 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.9481, allocations: 0 / 1.366 GB, free: 3.543 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.277e-05/0.9482, allocations: 0 / 1.366 GB, free: 3.543 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001331/0.9483, allocations: 156.8 kB / 1.366 GB, free: 3.344 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 3.829e-05/0.9483, allocations: 22.52 kB / 1.366 GB, free: 3.312 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.831e-05/0.9484, allocations: 12.64 kB / 1.366 GB, free: 3.301 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.9484, allocations: 0 / 1.366 GB, free: 3.301 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.797e-05/0.9484, allocations: 30.56 kB / 1.366 GB, free: 3.262 MB / 0.823 GB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.9484, allocations: 0 / 1.366 GB, free: 3.262 MB / 0.823 GB Notification: Performance of matching and sorting (n=1): time 0.000118/0.9485, allocations: 33.69 kB / 1.366 GB, free: 3.223 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.9486, allocations: 51.41 kB / 1.366 GB, free: 3.16 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.7e-05/0.9486, allocations: 89.91 kB / 1.366 GB, free: 3.066 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.115e-05/0.9486, allocations: 25.7 kB / 1.366 GB, free: 3.035 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 1.998e-05/0.9487, allocations: 88.08 kB / 1.366 GB, free: 2.945 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.658e-05/0.9487, allocations: 0.7812 kB / 1.366 GB, free: 2.945 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.605e-06/0.9487, allocations: 0 / 1.366 GB, free: 2.945 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 8.811e-05/0.9488, allocations: 318.1 kB / 1.367 GB, free: 2.629 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.182e-05/0.9488, allocations: 0 / 1.367 GB, free: 2.629 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.719e-06/0.9488, allocations: 7.938 kB / 1.367 GB, free: 2.621 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.759e-05/0.9488, allocations: 2.031 kB / 1.367 GB, free: 2.621 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.9489, allocations: 4 kB / 1.367 GB, free: 2.617 MB / 0.823 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.114e-05/0.9489, allocations: 37.69 kB / 1.367 GB, free: 2.574 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.9489, allocations: 4 kB / 1.367 GB, free: 2.57 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.9489, allocations: 3.984 kB / 1.367 GB, free: 2.566 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.949, allocations: 0 / 1.367 GB, free: 2.566 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.725e-05/0.949, allocations: 4 kB / 1.367 GB, free: 2.562 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.9491, allocations: 0 / 1.367 GB, free: 2.562 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.122e-05/0.9491, allocations: 3.984 kB / 1.367 GB, free: 2.559 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.9491, allocations: 0 / 1.367 GB, free: 2.559 MB / 0.823 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 (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 5.623e-05/0.9492, allocations: 113 kB / 1.367 GB, free: 2.441 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.332e-06/0.9492, allocations: 0 / 1.367 GB, free: 2.441 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.934e-05/0.9492, allocations: 6.75 kB / 1.367 GB, free: 2.441 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.9492, allocations: 0 / 1.367 GB, free: 2.441 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.9492, allocations: 3.938 kB / 1.367 GB, free: 2.441 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.9492, allocations: 0 / 1.367 GB, free: 2.441 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.343e-05/0.9493, allocations: 153.6 kB / 1.367 GB, free: 2.242 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.9493, allocations: 3.938 kB / 1.367 GB, free: 2.238 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.644e-05/0.9494, allocations: 3.938 kB / 1.367 GB, free: 2.234 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.9494, allocations: 8 kB / 1.367 GB, free: 2.227 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.9494, allocations: 0 / 1.367 GB, free: 2.227 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.9494, allocations: 3.984 kB / 1.367 GB, free: 2.223 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.9494, allocations: 0 / 1.367 GB, free: 2.223 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.535e-05/0.9495, allocations: 60.98 kB / 1.367 GB, free: 2.148 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.048e-05/0.9495, allocations: 81.06 kB / 1.367 GB, free: 2.051 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.232e-05/0.9495, allocations: 3.984 kB / 1.367 GB, free: 2.047 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.042e-05/0.9496, allocations: 4.031 kB / 1.367 GB, free: 2.043 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.182e-05/0.9496, allocations: 0 / 1.367 GB, free: 2.043 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.9496, allocations: 4 kB / 1.367 GB, free: 2.039 MB / 0.823 GB Notification: Performance of sorting global known variables: time 3.269e-05/0.9496, allocations: 75.28 kB / 1.367 GB, free: 1.965 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9497, allocations: 0 / 1.367 GB, free: 1.965 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0001509/0.9498, allocations: 0 / 1.367 GB, free: 1.965 MB / 0.823 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 (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.000322/0.9501, allocations: 0.6003 MB / 1.368 GB, free: 1.336 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 6.332e-05/0.9502, allocations: 4 kB / 1.368 GB, free: 1.332 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.9502, allocations: 0 / 1.368 GB, free: 1.332 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 1.044e-05/0.9502, allocations: 4 kB / 1.368 GB, free: 1.328 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.271e-05/0.9503, allocations: 5.141 kB / 1.368 GB, free: 1.324 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002543/0.9506, allocations: 81.7 kB / 1.368 GB, free: 1.211 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001904/0.9508, allocations: 0.6811 MB / 1.368 GB, free: 0.5039 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 3.408e-05/0.9508, allocations: 0 / 1.368 GB, free: 0.5039 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.424e-05/0.9509, allocations: 11.44 kB / 1.368 GB, free: 0.4922 MB / 0.823 GB Notification: Performance of SimCode: time 3.61e-07/0.9509, allocations: 0 / 1.368 GB, free: 0.4922 MB / 0.823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009978/0.9608, allocations: 0.7551 MB / 1.369 GB, free: 15.87 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/0.9611, allocations: 164 kB / 1.369 GB, free: 15.64 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.308/2.269, allocations: 5.562 kB / 1.369 GB, free: 15.64 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat does not exist to compare? outputFormat=mat