Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.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.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale",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.282/2.282, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.001042/0.001042, allocations: 177.1 kB / 498.1 MB, free: 5.738 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.7948 GB, free: 17.89 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.001057/0.001057, allocations: 100.3 kB / 0.9346 GB, free: 6.195 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.0003489, allocations: 10.44 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2852, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1903/0.4756, allocations: 151.3 MB / 1.371 GB, free: 10.66 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/0.4759, allocations: 83.89 kB / 1.371 GB, free: 10.57 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.03035/0.5063, allocations: 10.81 MB / 1.381 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.334e-06/0.5063, allocations: 0 / 1.381 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 4.04e-05/0.5064, allocations: 12 kB / 1.381 GB, free: 15.73 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001956/0.5083, allocations: 0.8969 MB / 1.382 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/0.5084, allocations: 12.03 kB / 1.382 GB, free: 14.76 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001687/0.5086, allocations: 94.52 kB / 1.382 GB, free: 14.66 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002173/0.5088, allocations: 75.2 kB / 1.382 GB, free: 14.58 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006992/0.5095, allocations: 408.9 kB / 1.383 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.416e-05/0.5096, allocations: 49.31 kB / 1.383 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.5097, allocations: 64 kB / 1.383 GB, free: 14.03 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009716/0.5107, allocations: 0.523 MB / 1.383 GB, free: 13.49 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.5107, allocations: 0 / 1.383 GB, free: 13.49 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.159e-05/0.5108, allocations: 24 kB / 1.383 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.001e-05/0.5108, allocations: 15.94 kB / 1.383 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007906/0.5116, allocations: 377.1 kB / 1.384 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002913/0.5145, allocations: 1.705 MB / 1.385 GB, free: 11.32 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009821/0.5155, allocations: 0.9168 MB / 1.386 GB, free: 10.28 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.948e-05/0.5156, allocations: 4.438 kB / 1.386 GB, free: 10.28 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000541/0.5161, allocations: 277.3 kB / 1.387 GB, free: 9.992 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=53): time 4.398e-06/0.5161, allocations: 7.984 kB / 1.387 GB, free: 9.984 MB / 0.8855 GB Notification: Performance of matching and sorting (n=53): time 0.001153/0.5173, allocations: 0.5923 MB / 1.387 GB, free: 9.391 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.555e-05/0.5174, allocations: 111.2 kB / 1.387 GB, free: 9.254 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004137/0.5178, allocations: 356.8 kB / 1.388 GB, free: 8.902 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 6.948e-05/0.5179, allocations: 41.7 kB / 1.388 GB, free: 8.855 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001982/0.5181, allocations: 261 kB / 1.388 GB, free: 8.594 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001396/0.5182, allocations: 173.5 kB / 1.388 GB, free: 8.422 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.696e-05/0.5183, allocations: 16 kB / 1.388 GB, free: 8.406 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.5184, allocations: 362.7 kB / 1.388 GB, free: 8.043 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005068/0.519, allocations: 213 kB / 1.389 GB, free: 7.832 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005235/0.5195, allocations: 307.4 kB / 1.389 GB, free: 7.5 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005097/0.52, allocations: 293.4 kB / 1.389 GB, free: 7.203 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.52, allocations: 0 / 1.389 GB, free: 7.203 MB / 0.8855 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001284/0.5213, allocations: 0.6805 MB / 1.39 GB, free: 6.504 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004077/0.5217, allocations: 0.6802 MB / 1.391 GB, free: 5.762 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.5218, allocations: 0 / 1.391 GB, free: 5.762 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.014e-05/0.5218, allocations: 4 kB / 1.391 GB, free: 5.758 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004848/0.5223, allocations: 103.8 kB / 1.391 GB, free: 5.656 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.18e-05/0.5223, allocations: 4 kB / 1.391 GB, free: 5.652 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000677/0.523, allocations: 139.4 kB / 1.391 GB, free: 5.516 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.343e-05/0.5231, allocations: 31.94 kB / 1.391 GB, free: 5.484 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.5231, allocations: 4.938 kB / 1.391 GB, free: 5.48 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001081/0.5242, allocations: 0.5702 MB / 1.391 GB, free: 4.898 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.5242, allocations: 8.141 kB / 1.391 GB, free: 4.891 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.977e-06/0.5242, allocations: 4 kB / 1.391 GB, free: 4.887 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003502/0.5246, allocations: 87.84 kB / 1.392 GB, free: 4.801 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.5246, allocations: 4 kB / 1.392 GB, free: 4.797 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005308/0.5251, allocations: 119.6 kB / 1.392 GB, free: 4.68 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.64e-05/0.5252, allocations: 23.98 kB / 1.392 GB, free: 4.656 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition6,$whenCondition5,$PRE.booPul.y,booPul.y,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 2 * 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.0003354/0.5255, allocations: 266.7 kB / 1.392 GB, free: 4.387 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.385e-05/0.5256, allocations: 59.28 kB / 1.392 GB, free: 4.328 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008987/0.5265, allocations: 485.5 kB / 1.392 GB, free: 3.848 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.5265, allocations: 4 kB / 1.392 GB, free: 3.844 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.5266, allocations: 0 / 1.392 GB, free: 3.844 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.5266, allocations: 0 / 1.392 GB, free: 3.844 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001907/0.5285, allocations: 1.23 MB / 1.394 GB, free: 2.539 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.5285, allocations: 4 kB / 1.394 GB, free: 2.535 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003808/0.5289, allocations: 95.81 kB / 1.394 GB, free: 2.441 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.5289, allocations: 4 kB / 1.394 GB, free: 2.438 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.007e-05/0.5289, allocations: 8 kB / 1.394 GB, free: 2.43 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.529, allocations: 4 kB / 1.394 GB, free: 2.426 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.529, allocations: 4.188 kB / 1.394 GB, free: 2.422 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/0.5303, allocations: 0.8754 MB / 1.395 GB, free: 1.473 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.5304, allocations: 132.5 kB / 1.395 GB, free: 1.324 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.792e-05/0.5304, allocations: 15.98 kB / 1.395 GB, free: 1.309 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.5307, allocations: 31.98 kB / 1.395 GB, free: 1.277 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.339e-05/0.5308, allocations: 36.34 kB / 1.395 GB, free: 1.242 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.091e-05/0.5308, allocations: 20 kB / 1.395 GB, free: 1.223 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0003052/0.5311, allocations: 291.1 kB / 1.395 GB, free: 0.9414 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5311, allocations: 0 / 1.395 GB, free: 0.9414 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0006611/0.5318, allocations: 227.3 kB / 1.395 GB, free: 0.7188 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (pidSca.I.y,pidSca.D.x,pla1.y,pidNoSca.I.y,pidNoSca.D.x,pla2.y) * Number of discrete variables: 8 ($whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001712/0.5335, allocations: 1.872 MB / 1.397 GB, free: 14.77 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001678/0.5352, allocations: 1.021 MB / 1.398 GB, free: 13.7 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.5352, allocations: 4 kB / 1.398 GB, free: 13.7 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0003801/0.5356, allocations: 214.4 kB / 1.398 GB, free: 13.49 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005614/0.5362, allocations: 94.14 kB / 1.398 GB, free: 13.4 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002415/0.5386, allocations: 2.478 MB / 1.401 GB, free: 10.83 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004139/0.5391, allocations: 0.8712 MB / 1.402 GB, free: 9.934 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.000241/0.5393, allocations: 68.39 kB / 1.402 GB, free: 9.863 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002683/0.5396, allocations: 199.3 kB / 1.402 GB, free: 9.668 MB / 0.9011 GB Notification: Performance of SimCode: time 4.71e-07/0.5396, allocations: 0 / 1.402 GB, free: 9.668 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02584/0.5654, allocations: 10.96 MB / 1.413 GB, free: 14.94 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001774/0.5657, allocations: 197.7 kB / 1.413 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.329/2.895, allocations: 3 kB / 1.413 GB, free: 14.7 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale_res.mat does not exist to compare? outputFormat=mat