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.428/2.428, allocations: 390.5 MB / 398 MB, free: 10.98 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.001541/0.001542, allocations: 183.8 kB / 491.2 MB, free: 1.605 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.495/1.495, allocations: 221.5 MB / 0.7868 GB, free: 13.26 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.0009221/0.0009223, allocations: 95.52 kB / 0.9269 GB, free: 13.76 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.444e-05/2.469e-05, allocations: 12 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2897, allocations: 143 MB / 1.212 GB, free: 39.38 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1/1.29, allocations: 151.4 MB / 1.36 GB, free: 17.21 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002298/1.29, allocations: 73.27 kB / 1.36 GB, free: 17.21 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02812/1.318, allocations: 10.74 MB / 1.371 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.503e-06/1.319, allocations: 3.938 kB / 1.371 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.891e-05/1.319, allocations: 11.41 kB / 1.371 GB, free: 32.28 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.001187/1.32, allocations: 0.8118 MB / 1.372 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/1.32, allocations: 7.719 kB / 1.372 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/1.32, allocations: 77.67 kB / 1.372 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004991/1.32, allocations: 404.3 kB / 1.372 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/1.32, allocations: 15.53 kB / 1.372 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.123e-05/1.321, allocations: 42.19 kB / 1.372 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004906/1.321, allocations: 296.3 kB / 1.372 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006164/1.322, allocations: 421.6 kB / 1.373 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/1.322, allocations: 4 kB / 1.373 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/1.322, allocations: 0 / 1.373 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/1.322, allocations: 19.31 kB / 1.373 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002183/1.324, allocations: 1.581 MB / 1.374 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005609/1.325, allocations: 0.8286 MB / 1.375 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002321/1.325, allocations: 203.3 kB / 1.375 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.22e-05/1.325, allocations: 8.094 kB / 1.375 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003839/1.325, allocations: 236.2 kB / 1.376 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=53): time 3.246e-06/1.325, allocations: 4 kB / 1.376 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of matching and sorting (n=53): time 0.0005757/1.326, allocations: 364.7 kB / 1.376 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.22e-05/1.326, allocations: 111 kB / 1.376 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002946/1.326, allocations: 288.8 kB / 1.376 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.17e-05/1.326, allocations: 32.2 kB / 1.376 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/1.326, allocations: 264.9 kB / 1.377 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/1.327, allocations: 164.9 kB / 1.377 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.345e-05/1.327, allocations: 7 kB / 1.377 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001379/1.327, allocations: 353.7 kB / 1.377 GB, free: 29.22 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002529/1.327, allocations: 166.5 kB / 1.377 GB, free: 29.22 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002863/1.327, allocations: 258.9 kB / 1.378 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004626/1.328, allocations: 205.8 kB / 1.378 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/1.328, allocations: 0 / 1.378 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0008696/1.329, allocations: 0.527 MB / 1.378 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.000274/1.329, allocations: 0.6756 MB / 1.379 GB, free: 28.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/1.329, allocations: 3.969 kB / 1.379 GB, free: 28.33 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/1.329, allocations: 3.875 kB / 1.379 GB, free: 28.33 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004049/1.329, allocations: 104.8 kB / 1.379 GB, free: 28.32 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/1.329, allocations: 7.875 kB / 1.379 GB, free: 28.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005303/1.33, allocations: 115.1 kB / 1.379 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.205e-05/1.33, allocations: 23.53 kB / 1.379 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.983e-06/1.33, allocations: 3.844 kB / 1.379 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008013/1.331, allocations: 471.4 kB / 1.38 GB, free: 28.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/1.331, allocations: 11.8 kB / 1.38 GB, free: 28.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.045e-06/1.331, allocations: 3.875 kB / 1.38 GB, free: 28.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003154/1.331, allocations: 92.59 kB / 1.38 GB, free: 28.26 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/1.331, allocations: 3.875 kB / 1.38 GB, free: 28.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004714/1.332, allocations: 105.7 kB / 1.38 GB, free: 28.24 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-05/1.332, allocations: 25.81 kB / 1.38 GB, free: 28.24 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.0001737/1.332, allocations: 120.5 kB / 1.38 GB, free: 28.12 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004918/1.332, allocations: 360.3 kB / 1.38 GB, free: 28.05 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.059e-05/1.332, allocations: 46.27 kB / 1.38 GB, free: 28.03 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006094/1.333, allocations: 383.8 kB / 1.381 GB, free: 27.97 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/1.333, allocations: 7.906 kB / 1.381 GB, free: 27.97 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/1.333, allocations: 7.75 kB / 1.381 GB, free: 27.96 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/1.333, allocations: 3.141 kB / 1.381 GB, free: 27.96 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001484/1.335, allocations: 1.052 MB / 1.382 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/1.335, allocations: 192 / 1.382 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003526/1.335, allocations: 92.25 kB / 1.382 GB, free: 27.6 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.105e-06/1.335, allocations: 7.766 kB / 1.382 GB, free: 27.59 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.863e-05/1.335, allocations: 10.53 kB / 1.382 GB, free: 27.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/1.335, allocations: 3.969 kB / 1.382 GB, free: 27.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/1.335, allocations: 7.844 kB / 1.382 GB, free: 27.59 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000893/1.336, allocations: 0.746 MB / 1.383 GB, free: 27.26 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.517e-05/1.336, allocations: 118.3 kB / 1.383 GB, free: 27.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.265e-05/1.336, allocations: 3.75 kB / 1.383 GB, free: 27.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/1.336, allocations: 23.11 kB / 1.383 GB, free: 27.14 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.859e-05/1.336, allocations: 45.02 kB / 1.383 GB, free: 27.13 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.142e-05/1.336, allocations: 21.25 kB / 1.383 GB, free: 27.13 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002527/1.337, allocations: 217.5 kB / 1.383 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.31e-07/1.337, allocations: 3.812 kB / 1.383 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0008128/1.338, allocations: 211.5 kB / 1.383 GB, free: 27 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.001563/1.339, allocations: 1.725 MB / 1.385 GB, free: 25.73 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001173/1.34, allocations: 0.9074 MB / 1.386 GB, free: 25.45 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/1.34, allocations: 0 / 1.386 GB, free: 25.45 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002282/1.341, allocations: 178.8 kB / 1.386 GB, free: 25.44 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006376/1.341, allocations: 85.08 kB / 1.386 GB, free: 25.43 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/1.343, allocations: 0.8267 MB / 1.387 GB, free: 25.07 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004872/1.343, allocations: 0.8727 MB / 1.388 GB, free: 24.36 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000296/1.344, allocations: 67.78 kB / 1.388 GB, free: 24.34 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002214/1.344, allocations: 190.4 kB / 1.388 GB, free: 24.34 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/1.344, allocations: 0 / 1.388 GB, free: 24.34 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02873/1.373, allocations: 10.35 MB / 1.398 GB, free: 19.63 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001656/1.373, allocations: 166.8 kB / 1.398 GB, free: 19.44 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.45/3.823, allocations: 0 / 1.398 GB, free: 19.44 MB / 0.8386 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