Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.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.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.591/2.591, allocations: 390.3 MB / 402.8 MB, free: 6.672 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.001328/0.001329, allocations: 184.8 kB / 496.1 MB, free: 12.84 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.626/1.626, allocations: 221.3 MB / 0.7915 GB, free: 5.391 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.0008999/0.0008999, allocations: 84.02 kB / 0.9317 GB, free: 5.691 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.281e-05/4.303e-05, allocations: 8 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/0.3006, allocations: 143 MB / 1.219 GB, free: 13.38 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.016/1.316, allocations: 152 MB / 1.367 GB, free: 2.051 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003133/1.317, allocations: 75.39 kB / 1.367 GB, free: 2.012 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04431/1.361, allocations: 10.81 MB / 1.378 GB, free: 8.777 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.51e-06/1.361, allocations: 0 / 1.378 GB, free: 8.777 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.579e-05/1.361, allocations: 15.94 kB / 1.378 GB, free: 8.762 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.001804/1.363, allocations: 0.8115 MB / 1.379 GB, free: 7.93 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/1.363, allocations: 8.031 kB / 1.379 GB, free: 7.922 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001413/1.363, allocations: 91.14 kB / 1.379 GB, free: 7.855 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001987/1.363, allocations: 75.2 kB / 1.379 GB, free: 7.781 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008174/1.364, allocations: 404 kB / 1.379 GB, free: 7.41 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.664e-05/1.364, allocations: 53.94 kB / 1.379 GB, free: 7.375 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/1.365, allocations: 65.36 kB / 1.379 GB, free: 7.332 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001243/1.366, allocations: 0.4923 MB / 1.38 GB, free: 6.98 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/1.366, allocations: 0 / 1.38 GB, free: 6.98 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.809e-05/1.366, allocations: 21.88 kB / 1.38 GB, free: 6.977 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2e-05/1.366, allocations: 12 kB / 1.38 GB, free: 6.965 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008775/1.367, allocations: 325.7 kB / 1.38 GB, free: 6.762 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00391/1.371, allocations: 1.695 MB / 1.382 GB, free: 5.395 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/1.372, allocations: 0.8476 MB / 1.383 GB, free: 4.562 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000487/1.372, allocations: 226.9 kB / 1.383 GB, free: 4.418 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 5.659e-05/1.373, allocations: 4.438 kB / 1.383 GB, free: 4.414 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006433/1.373, allocations: 249.7 kB / 1.383 GB, free: 4.223 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=53): time 5.751e-06/1.373, allocations: 0 / 1.383 GB, free: 4.223 MB / 0.8386 GB Notification: Performance of matching and sorting (n=53): time 0.001077/1.374, allocations: 394.3 kB / 1.384 GB, free: 3.926 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/1.374, allocations: 118.5 kB / 1.384 GB, free: 3.785 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006187/1.375, allocations: 353.3 kB / 1.384 GB, free: 3.508 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.147e-05/1.375, allocations: 41.08 kB / 1.384 GB, free: 3.469 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002778/1.375, allocations: 269.3 kB / 1.384 GB, free: 3.273 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001884/1.376, allocations: 163.7 kB / 1.384 GB, free: 3.133 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.407e-05/1.376, allocations: 13.69 kB / 1.384 GB, free: 3.129 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002371/1.376, allocations: 362.7 kB / 1.385 GB, free: 2.785 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005144/1.376, allocations: 175.7 kB / 1.385 GB, free: 2.684 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006218/1.377, allocations: 279.2 kB / 1.385 GB, free: 2.457 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006021/1.378, allocations: 259.3 kB / 1.386 GB, free: 2.266 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/1.378, allocations: 0 / 1.386 GB, free: 2.266 MB / 0.8386 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001539/1.379, allocations: 0.6062 MB / 1.386 GB, free: 1.789 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004251/1.38, allocations: 0.682 MB / 1.387 GB, free: 1.062 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/1.38, allocations: 4 kB / 1.387 GB, free: 1.059 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.533e-05/1.38, allocations: 4 kB / 1.387 GB, free: 1.055 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007261/1.381, allocations: 99.77 kB / 1.387 GB, free: 0.9609 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.841e-05/1.381, allocations: 4 kB / 1.387 GB, free: 0.957 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008996/1.381, allocations: 139.1 kB / 1.387 GB, free: 0.8281 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.161e-05/1.382, allocations: 29.8 kB / 1.387 GB, free: 0.8047 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.748e-06/1.382, allocations: 0 / 1.387 GB, free: 0.8047 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001394/1.383, allocations: 0.5609 MB / 1.388 GB, free: 404 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/1.383, allocations: 0 / 1.388 GB, free: 404 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/1.383, allocations: 4 kB / 1.388 GB, free: 400 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005305/1.384, allocations: 83.34 kB / 1.388 GB, free: 320 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/1.384, allocations: 7.984 kB / 1.388 GB, free: 312 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007863/1.384, allocations: 126.1 kB / 1.388 GB, free: 196 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.075e-05/1.385, allocations: 27.38 kB / 1.388 GB, free: 172 kB / 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.0002375/1.385, allocations: 139.2 kB / 1.388 GB, free: 44 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/1.385, allocations: 55.3 kB / 1.388 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001098/1.386, allocations: 425.8 kB / 1.388 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/1.386, allocations: 15.94 kB / 1.388 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/1.386, allocations: 0 / 1.388 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/1.386, allocations: 8.062 kB / 1.388 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002411/1.389, allocations: 1.178 MB / 1.39 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.86e-06/1.389, allocations: 0 / 1.39 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006081/1.389, allocations: 91.33 kB / 1.39 GB, free: 14.62 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.241e-05/1.389, allocations: 4 kB / 1.39 GB, free: 14.62 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.911e-05/1.389, allocations: 14 kB / 1.39 GB, free: 14.61 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/1.389, allocations: 192 / 1.39 GB, free: 14.61 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.389, allocations: 8 kB / 1.39 GB, free: 14.61 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001533/1.391, allocations: 0.7904 MB / 1.39 GB, free: 13.94 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001525/1.391, allocations: 131.9 kB / 1.391 GB, free: 13.79 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.464e-05/1.391, allocations: 11.56 kB / 1.391 GB, free: 13.79 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004052/1.392, allocations: 35.22 kB / 1.391 GB, free: 13.76 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/1.392, allocations: 36.09 kB / 1.391 GB, free: 13.73 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.77e-05/1.392, allocations: 19.75 kB / 1.391 GB, free: 13.71 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0004651/1.392, allocations: 277.7 kB / 1.391 GB, free: 13.51 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3.597e-06/1.392, allocations: 0 / 1.391 GB, free: 13.51 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.001191/1.393, allocations: 232.3 kB / 1.391 GB, free: 13.3 MB / 0.8542 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.001798/1.395, allocations: 1.78 MB / 1.393 GB, free: 11.66 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001582/1.397, allocations: 0.9649 MB / 1.394 GB, free: 10.89 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/1.397, allocations: 0 / 1.394 GB, free: 10.89 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003098/1.397, allocations: 189.8 kB / 1.394 GB, free: 10.76 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006848/1.398, allocations: 100.3 kB / 1.394 GB, free: 10.69 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001891/1.4, allocations: 0.8706 MB / 1.395 GB, free: 9.887 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004892/1.4, allocations: 0.876 MB / 1.396 GB, free: 8.984 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0003901/1.401, allocations: 82.11 kB / 1.396 GB, free: 8.902 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002744/1.401, allocations: 195.2 kB / 1.396 GB, free: 8.852 MB / 0.8542 GB Notification: Performance of SimCode: time 4.31e-07/1.401, allocations: 0 / 1.396 GB, free: 8.852 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02738/1.428, allocations: 11.66 MB / 1.408 GB, free: 13.44 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001811/1.429, allocations: 182.2 kB / 1.408 GB, free: 13.21 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.286/3.715, allocations: 0 / 1.408 GB, free: 13.21 MB / 0.8698 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale_res.mat does not exist to compare? outputFormat=mat