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.324/2.324, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001427/0.001427, allocations: 184.8 kB / 487.4 MB, free: 5.074 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.745/1.745, allocations: 221.5 MB / 0.7824 GB, free: 1.02 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 95.78 kB / 0.9219 GB, free: 2.262 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.208e-05/2.209e-05, allocations: 8 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2624, allocations: 142.4 MB / 1.206 GB, free: 43.87 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9317/1.194, allocations: 150.6 MB / 1.353 GB, free: 18.13 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001774/1.194, allocations: 81.53 kB / 1.353 GB, free: 18.13 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02618/1.221, allocations: 10.73 MB / 1.364 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.663e-06/1.221, allocations: 3.938 kB / 1.364 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.459e-05/1.221, allocations: 11.5 kB / 1.364 GB, free: 33.2 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001122/1.222, allocations: 0.8172 MB / 1.364 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/1.222, allocations: 7.844 kB / 1.364 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/1.222, allocations: 73.81 kB / 1.365 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004616/1.222, allocations: 409.8 kB / 1.365 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.338e-05/1.222, allocations: 15.28 kB / 1.365 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.199e-05/1.223, allocations: 38.75 kB / 1.365 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004668/1.223, allocations: 293 kB / 1.365 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005927/1.224, allocations: 426 kB / 1.366 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/1.224, allocations: 0 / 1.366 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.44e-05/1.224, allocations: 2.344 kB / 1.366 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/1.224, allocations: 15.41 kB / 1.366 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002208/1.226, allocations: 1.589 MB / 1.367 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005669/1.226, allocations: 0.8181 MB / 1.368 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002301/1.227, allocations: 208.2 kB / 1.368 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.052e-05/1.227, allocations: 7.969 kB / 1.368 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003438/1.227, allocations: 235.4 kB / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=53): time 1.893e-06/1.227, allocations: 0 / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of matching and sorting (n=53): time 0.0005721/1.228, allocations: 360.4 kB / 1.369 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.737e-05/1.228, allocations: 113.6 kB / 1.369 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002962/1.228, allocations: 290.6 kB / 1.369 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.914e-05/1.228, allocations: 32.22 kB / 1.369 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001762/1.228, allocations: 261.9 kB / 1.369 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.347e-05/1.228, allocations: 166.3 kB / 1.37 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.383e-05/1.228, allocations: 7.812 kB / 1.37 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001551/1.229, allocations: 356.8 kB / 1.37 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002608/1.229, allocations: 163.6 kB / 1.37 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002767/1.229, allocations: 266 kB / 1.37 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004461/1.23, allocations: 195.2 kB / 1.371 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/1.23, allocations: 7.812 kB / 1.371 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0009103/1.231, allocations: 0.5261 MB / 1.371 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003267/1.231, allocations: 0.6807 MB / 1.372 GB, free: 29.24 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/1.231, allocations: 2.906 kB / 1.372 GB, free: 29.24 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/1.231, allocations: 3.906 kB / 1.372 GB, free: 29.24 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000398/1.231, allocations: 96.88 kB / 1.372 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.974e-06/1.231, allocations: 3.844 kB / 1.372 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004994/1.232, allocations: 119.5 kB / 1.372 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.785e-05/1.232, allocations: 31.27 kB / 1.372 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.634e-06/1.232, allocations: 6 kB / 1.372 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007826/1.233, allocations: 461.2 kB / 1.372 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/1.233, allocations: 7.812 kB / 1.372 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.406e-06/1.233, allocations: 15.89 kB / 1.372 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003072/1.233, allocations: 86.05 kB / 1.373 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/1.233, allocations: 3.875 kB / 1.373 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004419/1.233, allocations: 106.2 kB / 1.373 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.853e-05/1.234, allocations: 26.11 kB / 1.373 GB, free: 29.16 MB / 0.8386 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 () * 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.000138/1.234, allocations: 121.1 kB / 1.373 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004178/1.234, allocations: 355.8 kB / 1.373 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.816e-05/1.234, allocations: 54.25 kB / 1.373 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000509/1.235, allocations: 385.5 kB / 1.374 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/1.235, allocations: 3.812 kB / 1.374 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/1.235, allocations: 0 / 1.374 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.341e-06/1.235, allocations: 3.047 kB / 1.374 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001232/1.236, allocations: 1.058 MB / 1.375 GB, free: 28.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/1.236, allocations: 0 / 1.375 GB, free: 28.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003517/1.236, allocations: 96.41 kB / 1.375 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/1.236, allocations: 3.812 kB / 1.375 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.895e-05/1.236, allocations: 9.703 kB / 1.375 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/1.236, allocations: 7.656 kB / 1.375 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.236, allocations: 3.906 kB / 1.375 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007858/1.237, allocations: 0.7492 MB / 1.375 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.381e-05/1.237, allocations: 125.5 kB / 1.376 GB, free: 28.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.957e-05/1.237, allocations: 3.875 kB / 1.376 GB, free: 28.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002252/1.238, allocations: 21.39 kB / 1.376 GB, free: 28.05 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.54e-05/1.238, allocations: 40.39 kB / 1.376 GB, free: 28.05 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-05/1.238, allocations: 20.69 kB / 1.376 GB, free: 28.05 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000196/1.238, allocations: 225.7 kB / 1.376 GB, free: 27.97 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.7e-07/1.238, allocations: 0 / 1.376 GB, free: 27.97 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006087/1.238, allocations: 211.9 kB / 1.376 GB, free: 27.92 MB / 0.8386 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 () * 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.001218/1.24, allocations: 1.722 MB / 1.378 GB, free: 26.66 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001008/1.241, allocations: 0.9087 MB / 1.379 GB, free: 26.38 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/1.241, allocations: 0 / 1.379 GB, free: 26.38 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002446/1.241, allocations: 177.1 kB / 1.379 GB, free: 26.37 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005177/1.242, allocations: 87.06 kB / 1.379 GB, free: 26.35 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/1.243, allocations: 0.813 MB / 1.38 GB, free: 26 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004047/1.243, allocations: 0.8725 MB / 1.381 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002708/1.244, allocations: 77.33 kB / 1.381 GB, free: 25.27 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001963/1.244, allocations: 197.2 kB / 1.381 GB, free: 25.26 MB / 0.8386 GB Notification: Performance of SimCode: time 4.61e-07/1.244, allocations: 0 / 1.381 GB, free: 25.26 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02993/1.274, allocations: 10.35 MB / 1.391 GB, free: 21.44 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002286/1.274, allocations: 158.1 kB / 1.391 GB, free: 21.24 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.218/3.492, allocations: 0 / 1.391 GB, free: 21.24 MB / 0.8386 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