Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008664/0.0008664, allocations: 97.64 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00486/0.00486, allocations: 170.1 kB / 16.27 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.731/2.731, allocations: 462.6 MB / 0.7364 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003332/0.0003331, allocations: 19.8 kB / 0.9029 GB, free: 36.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2856, allocations: 159.6 MB / 1.059 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale): time 0.002407/0.2881, allocations: 1.792 MB / 1.061 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002459/0.2906, allocations: 1.684 MB / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003324/0.2909, allocations: 11.94 kB / 1.062 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002358/0.2912, allocations: 67.38 kB / 1.062 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002653/0.2914, allocations: 59.56 kB / 1.062 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009482/0.2924, allocations: 381 kB / 1.063 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007029/0.2931, allocations: 0.7075 MB / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005375/0.2937, allocations: 361.8 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002739/0.2939, allocations: 202.9 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002882/0.2942, allocations: 230.5 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.895e-05/0.2943, allocations: 24 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001074/0.2944, allocations: 35.98 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.243e-05/0.2945, allocations: 87.5 kB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002306/0.2948, allocations: 272.1 kB / 1.065 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006871/0.2955, allocations: 0.8137 MB / 1.065 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2955, allocations: 11.94 kB / 1.065 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2955, allocations: 0 / 1.065 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.736e-05/0.2955, allocations: 0 / 1.065 GB, free: 14.09 MB / 0.8262 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.001549/0.2971, allocations: 0.8624 MB / 1.066 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.2971, allocations: 11.97 kB / 1.066 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000114/0.2972, allocations: 98.7 kB / 1.066 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.2974, allocations: 72.09 kB / 1.066 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005177/0.2979, allocations: 410 kB / 1.067 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.705e-05/0.298, allocations: 53.62 kB / 1.067 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/0.2981, allocations: 64.36 kB / 1.067 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009513/0.299, allocations: 0.5314 MB / 1.067 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.2991, allocations: 3.938 kB / 1.067 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.187e-05/0.2991, allocations: 20 kB / 1.067 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.2991, allocations: 12 kB / 1.067 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007692/0.2999, allocations: 389 kB / 1.068 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002533/0.3024, allocations: 1.693 MB / 1.069 GB, free: 9.703 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.3035, allocations: 0.9155 MB / 1.07 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004295/0.3039, allocations: 256.9 kB / 1.071 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.595e-05/0.3039, allocations: 8.438 kB / 1.071 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004929/0.3044, allocations: 285.2 kB / 1.071 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=53): time 2.264e-06/0.3045, allocations: 0 / 1.071 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of matching and sorting (n=53): time 0.001151/0.3056, allocations: 0.6001 MB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.362e-05/0.3057, allocations: 107.2 kB / 1.072 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004431/0.3062, allocations: 409.7 kB / 1.072 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.569e-05/0.3062, allocations: 41.7 kB / 1.072 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001998/0.3064, allocations: 257 kB / 1.072 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.3066, allocations: 173.5 kB / 1.072 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.708e-05/0.3067, allocations: 57.69 kB / 1.072 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3068, allocations: 362.7 kB / 1.073 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000493/0.3073, allocations: 225 kB / 1.073 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005366/0.3079, allocations: 323.2 kB / 1.073 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008572/0.3087, allocations: 0.4917 MB / 1.074 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.3088, allocations: 4 kB / 1.074 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001272/0.31, allocations: 0.6923 MB / 1.074 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001208/0.3102, allocations: 195.5 kB / 1.075 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.3102, allocations: 8 kB / 1.075 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.3102, allocations: 7.984 kB / 1.075 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004199/0.3106, allocations: 103.8 kB / 1.075 GB, free: 3.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.3106, allocations: 4 kB / 1.075 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006116/0.3113, allocations: 139.4 kB / 1.075 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.49e-05/0.3113, allocations: 31.98 kB / 1.075 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.341e-06/0.3113, allocations: 0 / 1.075 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009936/0.3123, allocations: 0.578 MB / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.3124, allocations: 0 / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.351e-06/0.3124, allocations: 4 kB / 1.076 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003261/0.3127, allocations: 91.83 kB / 1.076 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.3127, allocations: 4 kB / 1.076 GB, free: 3.051 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000551/0.3133, allocations: 127.6 kB / 1.076 GB, free: 2.926 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.772e-05/0.3133, allocations: 27.98 kB / 1.076 GB, free: 2.898 MB / 0.8262 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,booPul.y,$PRE.booPul.y,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000247/0.3136, allocations: 260.9 kB / 1.076 GB, free: 2.633 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.656e-05/0.3137, allocations: 51.42 kB / 1.076 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008595/0.3145, allocations: 489.6 kB / 1.077 GB, free: 2.098 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.3145, allocations: 4 kB / 1.077 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3146, allocations: 0 / 1.077 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.3146, allocations: 3.938 kB / 1.077 GB, free: 2.09 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001752/0.3163, allocations: 1.237 MB / 1.078 GB, free: 0.7773 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.3163, allocations: 3.938 kB / 1.078 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004015/0.3167, allocations: 96.08 kB / 1.078 GB, free: 0.6797 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/0.3168, allocations: 11.92 kB / 1.078 GB, free: 0.668 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.417e-05/0.3168, allocations: 12 kB / 1.078 GB, free: 0.6562 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.3168, allocations: 4 kB / 1.078 GB, free: 0.6523 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3168, allocations: 0 / 1.078 GB, free: 0.6523 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/0.3181, allocations: 0.8107 MB / 1.079 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.536e-05/0.3182, allocations: 128.5 kB / 1.079 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.639e-05/0.3182, allocations: 20.12 kB / 1.079 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.3185, allocations: 35.97 kB / 1.079 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.39e-05/0.3186, allocations: 36.33 kB / 1.079 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-05/0.3186, allocations: 20 kB / 1.079 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002955/0.3189, allocations: 279.2 kB / 1.079 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3189, allocations: 0 / 1.079 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006329/0.3195, allocations: 235.2 kB / 1.079 GB, free: 15.05 MB / 0.8419 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001551/0.3211, allocations: 1.382 MB / 1.081 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001573/0.3227, allocations: 1.028 MB / 1.082 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3227, allocations: 0 / 1.082 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003739/0.3231, allocations: 231.3 kB / 1.082 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007313/0.3238, allocations: 100.5 kB / 1.082 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007469/0.3313, allocations: 5.037 MB / 1.087 GB, free: 7.023 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004609/0.3318, allocations: 0.8634 MB / 1.088 GB, free: 6.129 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002467/0.332, allocations: 64.12 kB / 1.088 GB, free: 6.066 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002692/0.3323, allocations: 199.3 kB / 1.088 GB, free: 5.871 MB / 0.8419 GB Notification: Performance of SimCode: time 5.11e-07/0.3323, allocations: 0 / 1.088 GB, free: 5.871 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02418/0.3565, allocations: 11.04 MB / 1.099 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001898/0.3567, allocations: 219.7 kB / 1.099 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.16/2.516, allocations: 4 kB / 1.099 GB, free: 10.81 MB / 0.8575 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches