Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.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.Functions.Examples.RegStep,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.942/2.942, allocations: 390.3 MB / 405.3 MB, free: 13.52 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.001589/0.001589, allocations: 185 kB / 498.1 MB, free: 5.777 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.721/1.721, allocations: 223.2 MB / 0.7948 GB, free: 18.87 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.0009333/0.0009332, allocations: 98.52 kB / 0.9346 GB, free: 7.168 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003997/0.0004001, allocations: 11.25 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.2996, allocations: 142.4 MB / 1.223 GB, free: 89.51 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1979/0.4975, allocations: 148.5 MB / 1.368 GB, free: 4.809 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/0.4979, allocations: 75.95 kB / 1.368 GB, free: 4.734 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.001473/0.4994, allocations: 0.5437 MB / 1.369 GB, free: 4.188 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.655e-06/0.4994, allocations: 0 / 1.369 GB, free: 4.188 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.4994, allocations: 0 / 1.369 GB, free: 4.188 MB / 0.8698 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.0002868/0.4997, allocations: 315.4 kB / 1.369 GB, free: 3.832 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.4998, allocations: 8.031 kB / 1.369 GB, free: 3.824 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.868e-05/0.4998, allocations: 38.56 kB / 1.369 GB, free: 3.777 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001881/0.5, allocations: 15.97 kB / 1.369 GB, free: 3.762 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.5001, allocations: 163 kB / 1.369 GB, free: 3.562 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.5002, allocations: 4 kB / 1.369 GB, free: 3.559 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.877e-06/0.5002, allocations: 0 / 1.369 GB, free: 3.559 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001412/0.5003, allocations: 33.69 kB / 1.369 GB, free: 3.52 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.5003, allocations: 3.938 kB / 1.369 GB, free: 3.516 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-06/0.5004, allocations: 4 kB / 1.369 GB, free: 3.512 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.5004, allocations: 0 / 1.369 GB, free: 3.512 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.748e-05/0.5005, allocations: 15.91 kB / 1.369 GB, free: 3.496 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001515/0.5006, allocations: 153.6 kB / 1.369 GB, free: 3.297 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 8.348e-05/0.5007, allocations: 24.55 kB / 1.369 GB, free: 3.266 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.135e-05/0.5008, allocations: 0 / 1.369 GB, free: 3.266 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.5008, allocations: 38.61 kB / 1.369 GB, free: 3.219 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.5008, allocations: 0 / 1.369 GB, free: 3.219 MB / 0.8698 GB Notification: Performance of matching and sorting (n=1): time 0.0002361/0.501, allocations: 45.62 kB / 1.369 GB, free: 3.168 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.418e-05/0.5011, allocations: 55.53 kB / 1.369 GB, free: 3.102 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.489e-05/0.5011, allocations: 85 kB / 1.37 GB, free: 3.012 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.448e-05/0.5012, allocations: 25.7 kB / 1.37 GB, free: 2.98 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.308e-05/0.5012, allocations: 84.14 kB / 1.37 GB, free: 2.895 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.574e-05/0.5012, allocations: 7.891 kB / 1.37 GB, free: 2.887 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.895e-06/0.5012, allocations: 0 / 1.37 GB, free: 2.887 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.5014, allocations: 310.8 kB / 1.37 GB, free: 2.574 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.5e-05/0.5014, allocations: 4 kB / 1.37 GB, free: 2.57 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.718e-05/0.5015, allocations: 11.98 kB / 1.37 GB, free: 2.559 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.755e-05/0.5015, allocations: 7.953 kB / 1.37 GB, free: 2.551 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.5015, allocations: 0 / 1.37 GB, free: 2.551 MB / 0.8698 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001315/0.5017, allocations: 41.62 kB / 1.37 GB, free: 2.504 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.5017, allocations: 7.984 kB / 1.37 GB, free: 2.496 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.5017, allocations: 0 / 1.37 GB, free: 2.496 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.5017, allocations: 4 kB / 1.37 GB, free: 2.492 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.259e-05/0.5018, allocations: 4.094 kB / 1.37 GB, free: 2.488 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.5018, allocations: 0 / 1.37 GB, free: 2.488 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.702e-05/0.5019, allocations: 7.938 kB / 1.37 GB, free: 2.48 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.5019, allocations: 0 / 1.37 GB, free: 2.48 MB / 0.8698 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 7.633e-05/0.502, allocations: 117.8 kB / 1.37 GB, free: 2.355 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.125e-06/0.502, allocations: 0 / 1.37 GB, free: 2.355 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.878e-05/0.502, allocations: 7.125 kB / 1.37 GB, free: 2.348 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.502, allocations: 0 / 1.37 GB, free: 2.348 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.502, allocations: 4 kB / 1.37 GB, free: 2.344 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.502, allocations: 0 / 1.37 GB, free: 2.344 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000104/0.5021, allocations: 141.7 kB / 1.37 GB, free: 2.156 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.5022, allocations: 11.88 kB / 1.37 GB, free: 2.145 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.513e-05/0.5022, allocations: 4 kB / 1.37 GB, free: 2.141 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.5022, allocations: 0 / 1.37 GB, free: 2.141 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.5022, allocations: 0 / 1.37 GB, free: 2.141 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.5022, allocations: 0 / 1.37 GB, free: 2.141 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.5022, allocations: 0 / 1.37 GB, free: 2.141 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001551/0.5024, allocations: 77.05 kB / 1.37 GB, free: 2.047 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.589e-05/0.5024, allocations: 81.06 kB / 1.37 GB, free: 1.949 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.5025, allocations: 0 / 1.37 GB, free: 1.949 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.397e-05/0.5025, allocations: 8 kB / 1.37 GB, free: 1.941 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.461e-05/0.5025, allocations: 0 / 1.37 GB, free: 1.941 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.607e-06/0.5025, allocations: 0 / 1.37 GB, free: 1.941 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 3.01e-05/0.5026, allocations: 75.28 kB / 1.371 GB, free: 1.867 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5026, allocations: 0 / 1.371 GB, free: 1.867 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0001694/0.5027, allocations: 8.031 kB / 1.371 GB, free: 1.859 MB / 0.8698 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.0004481/0.5032, allocations: 0.6005 MB / 1.371 GB, free: 1.23 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001309/0.5033, allocations: 19.95 kB / 1.371 GB, free: 1.211 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.5034, allocations: 0 / 1.371 GB, free: 1.211 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 4.314e-05/0.5034, allocations: 11.98 kB / 1.371 GB, free: 1.199 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.095e-05/0.5035, allocations: 4 kB / 1.371 GB, free: 1.195 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003622/0.5039, allocations: 110.5 kB / 1.371 GB, free: 1.047 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002568/0.5041, allocations: 0.677 MB / 1.372 GB, free: 352 kB / 0.8698 GB Notification: Performance of simCode: alias equations: time 4.037e-05/0.5042, allocations: 4.125 kB / 1.372 GB, free: 348 kB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.579e-05/0.5042, allocations: 7.438 kB / 1.372 GB, free: 340 kB / 0.8698 GB Notification: Performance of SimCode: time 2.9e-07/0.5042, allocations: 0 / 1.372 GB, free: 340 kB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01199/0.5162, allocations: 0.74 MB / 1.373 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002236/0.5165, allocations: 185.3 kB / 1.373 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.46/1.977, allocations: 0 / 1.373 GB, free: 15.46 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat does not exist to compare? outputFormat=mat