Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.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.Routing.Validation.RealVectorReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaRep.u.1.|reaRep.y.1|1.|reaRep.y.2|2.|reaRep.y.3|2.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator") translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaRep.u.1.|reaRep.y.1|1.|reaRep.y.2|2.|reaRep.y.3|2.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000988/0.000988, allocations: 100.6 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.0009764/0.0009765, 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.517/1.517, allocations: 223.2 MB / 239.9 MB, free: 5.438 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.721/2.721, allocations: 390.2 MB / 0.6653 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003434/0.0003434, allocations: 8 kB / 0.8145 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9322/0.9325, allocations: 142.3 MB / 0.9535 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.0009953/0.9336, allocations: 372.6 kB / 0.9539 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008418/0.9344, allocations: 0.7883 MB / 0.9546 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.6e-05/0.9345, allocations: 1.656 kB / 0.9546 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.729e-05/0.9346, allocations: 7.984 kB / 0.9547 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.091e-05/0.9347, allocations: 10.36 kB / 0.9547 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 5.322e-05/0.9348, allocations: 5.047 kB / 0.9547 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.975e-05/0.9349, allocations: 30.12 kB / 0.9547 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.935, allocations: 13.09 kB / 0.9547 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.622e-05/0.9351, allocations: 17.02 kB / 0.9547 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.701e-05/0.9351, allocations: 26 kB / 0.9547 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.477e-05/0.9351, allocations: 1.688 kB / 0.9548 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.1e-05/0.9352, allocations: 1.938 kB / 0.9548 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.436e-05/0.9352, allocations: 20.88 kB / 0.9548 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.786e-05/0.9352, allocations: 32.61 kB / 0.9548 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.068e-05/0.9353, allocations: 49.06 kB / 0.9549 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.9353, allocations: 0 / 0.9549 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.733e-06/0.9353, allocations: 0 / 0.9549 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.9354, allocations: 0.5 kB / 0.9549 GB, free: 7.031 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005357/0.9359, allocations: 392.7 kB / 0.9552 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.9359, allocations: 12.84 kB / 0.9552 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.831e-05/0.936, allocations: 10.92 kB / 0.9552 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001545/0.9361, allocations: 183.2 kB / 0.9554 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.9362, allocations: 1.188 kB / 0.9554 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.753e-05/0.9362, allocations: 10.28 kB / 0.9554 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003417/0.9365, allocations: 148 kB / 0.9556 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.9366, allocations: 0 / 0.9556 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.9366, allocations: 1.156 kB / 0.9556 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.9366, allocations: 1.062 kB / 0.9556 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003938/0.937, allocations: 150.6 kB / 0.9557 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005985/0.9376, allocations: 451.2 kB / 0.9562 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002255/0.9378, allocations: 100.9 kB / 0.9562 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.9379, allocations: 5.406 kB / 0.9563 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.945e-05/0.9379, allocations: 35.34 kB / 0.9563 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.123e-06/0.9379, allocations: 0 / 0.9563 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0006541/0.9385, allocations: 214.1 kB / 0.9565 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.51e-05/0.9386, allocations: 90.31 kB / 0.9566 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.418e-05/0.9387, allocations: 112.8 kB / 0.9567 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.081e-05/0.9387, allocations: 27.08 kB / 0.9567 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.402e-05/0.9388, allocations: 102.6 kB / 0.9568 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.953e-05/0.9388, allocations: 5.531 kB / 0.9568 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-06/0.9388, allocations: 3.938 kB / 0.9568 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.784e-05/0.9388, allocations: 314.2 kB / 0.9571 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.939, allocations: 68.42 kB / 0.9572 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.9392, allocations: 77.39 kB / 0.9573 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001759/0.9394, allocations: 56.34 kB / 0.9573 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.9394, allocations: 3.938 kB / 0.9573 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000388/0.9398, allocations: 172.4 kB / 0.9575 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.9398, allocations: 5.844 kB / 0.9575 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.9398, allocations: 0 / 0.9575 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.9398, allocations: 1.188 kB / 0.9575 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001425/0.94, allocations: 24.44 kB / 0.9575 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.76e-06/0.94, allocations: 0 / 0.9575 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.302e-05/0.9401, allocations: 27.5 kB / 0.9575 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.9401, allocations: 0 / 0.9575 GB, free: 4.715 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 8.018e-05/0.9402, allocations: 123 kB / 0.9577 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.758e-05/0.9402, allocations: 5.828 kB / 0.9577 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.695e-05/0.9403, allocations: 9.281 kB / 0.9577 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.9403, allocations: 9.703 kB / 0.9577 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.9403, allocations: 0 / 0.9577 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.9403, allocations: 1.844 kB / 0.9577 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000206/0.9405, allocations: 180 kB / 0.9578 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.9405, allocations: 1.781 kB / 0.9578 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.961e-05/0.9406, allocations: 22.75 kB / 0.9579 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.9406, allocations: 2.25 kB / 0.9579 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.9407, allocations: 3.953 kB / 0.9579 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.9407, allocations: 2.062 kB / 0.9579 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.9407, allocations: 0 / 0.9579 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000455/0.9411, allocations: 347.4 kB / 0.9582 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.869e-05/0.9412, allocations: 82.34 kB / 0.9583 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.844e-05/0.9412, allocations: 9.297 kB / 0.9583 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.9414, allocations: 17.58 kB / 0.9583 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.839e-05/0.9414, allocations: 11.89 kB / 0.9583 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.9414, allocations: 1.188 kB / 0.9583 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.963e-05/0.9415, allocations: 93.3 kB / 0.9584 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9415, allocations: 0 / 0.9584 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002561/0.9417, allocations: 16.28 kB / 0.9584 GB, free: 3.855 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.0001416/0.9419, allocations: 101.6 kB / 0.9585 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004439/0.9423, allocations: 130.7 kB / 0.9587 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.9423, allocations: 1.438 kB / 0.9587 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002106/0.9426, allocations: 75.73 kB / 0.9587 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002336/0.9428, allocations: 21.33 kB / 0.9587 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003425/0.9432, allocations: 180.7 kB / 0.9589 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001709/0.9433, allocations: 0.7021 MB / 0.9596 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.102e-05/0.9434, allocations: 18.41 kB / 0.9596 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.852e-05/0.9434, allocations: 9 kB / 0.9596 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.9434, allocations: 4 kB / 0.9596 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of Templates: time 0.00316/0.9466, allocations: 0.6109 MB / 0.9602 GB, free: 2.457 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Routing_Validation_RealVectorReplicator.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[313]=2.990000 File[5002]=1.000000 Error: Could not read variable reaRep.y[1 in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[1 from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 1] in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 1] from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[2 in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[2 from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[3 in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[3 from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! " Variables in the reference:time,reaRep.u[1],reaRep.y[1,1],reaRep.y[2,2],reaRep.y[3,2] Variables in the result:ram[1].duration,ram[1].height,ram[1].offset,ram[1].startTime,ram[2].duration,ram[2].height,ram[2].offset,ram[2].startTime,reaRep.nin,reaRep.nout,reaRep.u[1],reaRep.y[3,1],time