Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sin.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Sin,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin1.u|sin1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sin") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Sin,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sin1.u|sin1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sin") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001406/0.001406, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 223.2 MB / 239.9 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.297/2.297, allocations: 390.3 MB / 0.6653 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003281/0.0003281, allocations: 12 kB / 0.8145 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6287/0.629, allocations: 142.3 MB / 0.9535 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sin): time 0.0007127/0.6298, allocations: 384.7 kB / 0.9539 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006754/0.6305, allocations: 0.8019 MB / 0.9547 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.522e-05/0.6305, allocations: 1.438 kB / 0.9547 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.472e-05/0.6306, allocations: 3.938 kB / 0.9547 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.479e-05/0.6306, allocations: 13.3 kB / 0.9547 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001138/0.6307, allocations: 5.359 kB / 0.9547 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.023e-05/0.6308, allocations: 9.156 kB / 0.9547 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.015e-05/0.6309, allocations: 13.59 kB / 0.9547 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.248e-05/0.6309, allocations: 6.594 kB / 0.9547 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.473e-05/0.631, allocations: 6.734 kB / 0.9547 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.139e-05/0.631, allocations: 1.188 kB / 0.9547 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.618e-06/0.631, allocations: 2.375 kB / 0.9547 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.043e-05/0.631, allocations: 7.938 kB / 0.9547 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.615e-05/0.631, allocations: 27.27 kB / 0.9548 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 4.599e-05/0.6311, allocations: 18.78 kB / 0.9548 GB, free: 7 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.6311, allocations: 0 / 0.9548 GB, free: 7 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.353e-06/0.6311, allocations: 0 / 0.9548 GB, free: 7 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.566e-06/0.6311, allocations: 0 / 0.9548 GB, free: 7 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000322/0.6314, allocations: 338 kB / 0.9551 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.6315, allocations: 9.344 kB / 0.9551 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.805e-05/0.6315, allocations: 5.047 kB / 0.9551 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.764e-05/0.6316, allocations: 164.1 kB / 0.9553 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.6316, allocations: 1.219 kB / 0.9553 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.616e-06/0.6316, allocations: 1.188 kB / 0.9553 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001581/0.6318, allocations: 54.3 kB / 0.9553 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.6318, allocations: 0 / 0.9553 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.6318, allocations: 0 / 0.9553 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.6318, allocations: 5.172 kB / 0.9553 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001829/0.632, allocations: 55.09 kB / 0.9554 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002444/0.6323, allocations: 245.7 kB / 0.9556 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001152/0.6324, allocations: 47.72 kB / 0.9557 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.594e-05/0.6324, allocations: 3.984 kB / 0.9557 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.458e-05/0.6324, allocations: 32.03 kB / 0.9557 GB, free: 6 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.873e-06/0.6324, allocations: 0 / 0.9557 GB, free: 6 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003347/0.6328, allocations: 110.4 kB / 0.9558 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.061e-05/0.6328, allocations: 52.47 kB / 0.9559 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.651e-05/0.6329, allocations: 98.52 kB / 0.956 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.404e-06/0.6329, allocations: 26.67 kB / 0.956 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.713e-05/0.6329, allocations: 89.25 kB / 0.9561 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.462e-05/0.6329, allocations: 12.97 kB / 0.9561 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-06/0.6329, allocations: 0 / 0.9561 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.607e-05/0.633, allocations: 312.1 kB / 0.9564 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.036e-05/0.6331, allocations: 18.36 kB / 0.9564 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.329e-05/0.6331, allocations: 25.3 kB / 0.9564 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.947e-05/0.6332, allocations: 22.28 kB / 0.9564 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.6332, allocations: 3.938 kB / 0.9564 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001798/0.6334, allocations: 82.45 kB / 0.9565 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.6334, allocations: 7.031 kB / 0.9565 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.6335, allocations: 0 / 0.9565 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.6335, allocations: 5.422 kB / 0.9565 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.818e-05/0.6336, allocations: 8.094 kB / 0.9565 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.471e-06/0.6336, allocations: 3.953 kB / 0.9565 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.869e-05/0.6336, allocations: 9.953 kB / 0.9566 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.501e-06/0.6336, allocations: 5.5 kB / 0.9566 GB, free: 5.223 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 (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 4.485e-05/0.6337, allocations: 107.2 kB / 0.9567 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.137e-05/0.6337, allocations: 1.219 kB / 0.9567 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002156/0.6339, allocations: 87.53 kB / 0.9567 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.6339, allocations: 1.312 kB / 0.9567 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.634, allocations: 3.984 kB / 0.9568 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.634, allocations: 3.953 kB / 0.9568 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001068/0.6341, allocations: 154.6 kB / 0.9569 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.6341, allocations: 0 / 0.9569 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.165e-05/0.6341, allocations: 16.14 kB / 0.9569 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.6342, allocations: 1.25 kB / 0.9569 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.6342, allocations: 0 / 0.9569 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.6342, allocations: 9.469 kB / 0.9569 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.6342, allocations: 3.984 kB / 0.9569 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001999/0.6344, allocations: 176.1 kB / 0.9571 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.539e-05/0.6344, allocations: 86.55 kB / 0.9572 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.204e-05/0.6344, allocations: 0 / 0.9572 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.607e-05/0.6345, allocations: 10.2 kB / 0.9572 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.047e-05/0.6345, allocations: 1.375 kB / 0.9572 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.516e-06/0.6346, allocations: 1.406 kB / 0.9572 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.99e-05/0.6346, allocations: 82.44 kB / 0.9573 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6346, allocations: 0 / 0.9573 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002112/0.6348, allocations: 7.453 kB / 0.9573 GB, free: 4.48 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 (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001123/0.6349, allocations: 105.3 kB / 0.9574 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002027/0.6351, allocations: 42.69 kB / 0.9574 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.6351, allocations: 0 / 0.9574 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.387e-05/0.6352, allocations: 28.16 kB / 0.9574 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001922/0.6354, allocations: 6.438 kB / 0.9575 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002208/0.6357, allocations: 102.8 kB / 0.9576 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.192e-05/0.6358, allocations: 0.6829 MB / 0.9582 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.238e-05/0.6358, allocations: 5.406 kB / 0.9582 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.95e-05/0.6358, allocations: 8.75 kB / 0.9582 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.6358, allocations: 3.938 kB / 0.9582 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of Templates: time 0.002167/0.638, allocations: 346.8 kB / 0.9586 GB, free: 3.348 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sin.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sin.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sin.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sin.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sin.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sin -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sin.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sin_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Sin.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches