Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Continuous.Validation.Subtract,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Subtract",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Subtract",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.001079/0.001079, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 194.1 kB / 16.53 MB, free: 6.664 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.361/2.361, allocations: 390.3 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 59.91 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7508/0.7523, allocations: 140.4 MB / 0.9497 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract): time 0.002599/0.755, allocations: 0.6966 MB / 0.9504 GB, free: 8.684 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001145/0.7562, allocations: 0.8049 MB / 0.9512 GB, free: 8.023 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.214e-05/0.7562, allocations: 5.188 kB / 0.9512 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.114e-05/0.7563, allocations: 0 / 0.9512 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.952e-05/0.7564, allocations: 9.281 kB / 0.9512 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 6.185e-05/0.7565, allocations: 13.61 kB / 0.9512 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.437e-05/0.7566, allocations: 36.83 kB / 0.9513 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.7567, allocations: 12.73 kB / 0.9513 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.673e-05/0.7568, allocations: 18.2 kB / 0.9513 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.251e-05/0.7568, allocations: 25.11 kB / 0.9513 GB, free: 7.941 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.785e-05/0.7568, allocations: 6.828 kB / 0.9513 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.04e-05/0.7569, allocations: 4.219 kB / 0.9513 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.845e-05/0.7569, allocations: 12.7 kB / 0.9513 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.205e-05/0.7569, allocations: 11.53 kB / 0.9514 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.164e-05/0.757, allocations: 39.81 kB / 0.9514 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.757, allocations: 0 / 0.9514 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.903e-06/0.757, allocations: 0 / 0.9514 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.111e-06/0.757, allocations: 0 / 0.9514 GB, free: 7.887 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004648/0.7575, allocations: 373.9 kB / 0.9517 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.7576, allocations: 14.16 kB / 0.9518 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.795e-05/0.7576, allocations: 30.75 kB / 0.9518 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.343e-05/0.7576, allocations: 3.531 kB / 0.9518 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.549e-05/0.7577, allocations: 178.8 kB / 0.952 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.7577, allocations: 5.844 kB / 0.952 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.654e-05/0.7578, allocations: 1.688 kB / 0.952 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002884/0.7581, allocations: 75.59 kB / 0.952 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.7581, allocations: 3.938 kB / 0.952 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.7581, allocations: 0 / 0.952 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.7581, allocations: 1.531 kB / 0.952 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002913/0.7584, allocations: 62.89 kB / 0.9521 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003548/0.7588, allocations: 280.1 kB / 0.9524 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002099/0.759, allocations: 47.36 kB / 0.9524 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/0.7592, allocations: 46 kB / 0.9525 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.7592, allocations: 1.531 kB / 0.9525 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.18e-05/0.7592, allocations: 34.56 kB / 0.9525 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.7592, allocations: 1.25 kB / 0.9525 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005961/0.7598, allocations: 132.8 kB / 0.9526 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.65e-05/0.7599, allocations: 52.41 kB / 0.9527 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.986e-05/0.76, allocations: 116.1 kB / 0.9528 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.466e-06/0.76, allocations: 25.7 kB / 0.9528 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.518e-05/0.76, allocations: 85.55 kB / 0.9529 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.254e-05/0.76, allocations: 9.344 kB / 0.9529 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.535e-05/0.7601, allocations: 16.47 kB / 0.9529 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.003e-05/0.7601, allocations: 316.2 kB / 0.9532 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.7603, allocations: 29.28 kB / 0.9532 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001335/0.7604, allocations: 37.05 kB / 0.9533 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002685/0.7607, allocations: 71.5 kB / 0.9533 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.7607, allocations: 1.812 kB / 0.9534 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003285/0.7611, allocations: 107.8 kB / 0.9535 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.7611, allocations: 6.438 kB / 0.9535 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.7611, allocations: 5.344 kB / 0.9535 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.7611, allocations: 0 / 0.9535 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.7613, allocations: 18.11 kB / 0.9535 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.7613, allocations: 0 / 0.9535 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.84e-05/0.7614, allocations: 11.45 kB / 0.9535 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.7614, allocations: 5.25 kB / 0.9535 GB, free: 5.852 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 6.547e-05/0.7614, allocations: 116 kB / 0.9536 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.416e-05/0.7615, allocations: 1.375 kB / 0.9536 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.935e-05/0.7615, allocations: 9.375 kB / 0.9536 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.7615, allocations: 0 / 0.9536 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.7615, allocations: 1.375 kB / 0.9536 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.7615, allocations: 7.875 kB / 0.9536 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001421/0.7617, allocations: 168.7 kB / 0.9538 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.7617, allocations: 1.125 kB / 0.9538 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001279/0.7618, allocations: 21.69 kB / 0.9538 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.7619, allocations: 5.094 kB / 0.9538 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.7619, allocations: 0 / 0.9538 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.7619, allocations: 1.219 kB / 0.9538 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.7619, allocations: 0 / 0.9538 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003624/0.7623, allocations: 199.4 kB / 0.954 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.692e-05/0.7623, allocations: 82.56 kB / 0.9541 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.651e-05/0.7623, allocations: 1.031 kB / 0.9541 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.7624, allocations: 10.33 kB / 0.9541 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.342e-05/0.7625, allocations: 3.062 kB / 0.9541 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.7625, allocations: 0 / 0.9541 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.796e-05/0.7626, allocations: 89.95 kB / 0.9542 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/0.7626, allocations: 0 / 0.9542 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002431/0.7628, allocations: 9.781 kB / 0.9542 GB, free: 5.129 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0005837/0.7634, allocations: 0.7328 MB / 0.9549 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003471/0.7638, allocations: 75.11 kB / 0.955 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.7638, allocations: 0 / 0.955 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001472/0.7639, allocations: 36.12 kB / 0.955 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000351/0.7643, allocations: 12.05 kB / 0.955 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004422/0.7647, allocations: 152.6 kB / 0.9552 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001098/0.7649, allocations: 0.6878 MB / 0.9558 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.095e-05/0.7649, allocations: 0.9062 kB / 0.9558 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.367e-05/0.7649, allocations: 12.5 kB / 0.9559 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of SimCode: time 6.11e-07/0.765, allocations: 0.9062 kB / 0.9559 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01739/0.7823, allocations: 1.594 MB / 0.9574 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.821/8.604, allocations: 17.31 kB / 0.9574 GB, free: 2.602 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Subtract.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Subtract.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches