Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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.Routing.Validation.RealScalarReplicator,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator",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.0007796/0.0007797, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0008631/0.0008631, allocations: 172.7 kB / 15.95 MB, free: 208 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.421/1.421, allocations: 223.3 MB / 240 MB, free: 5.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.572/2.572, allocations: 409.4 MB / 0.684 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.000375/0.000375, allocations: 8 kB / 0.8378 GB, free: 6.473 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7251/0.7255, allocations: 146.8 MB / 0.9811 GB, free: 6.238 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator): time 0.0009083/0.7264, allocations: 369.1 kB / 0.9815 GB, free: 5.883 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0008909/0.7273, allocations: 0.7885 MB / 0.9823 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.868e-05/0.7274, allocations: 0 / 0.9823 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 8.178e-05/0.7275, allocations: 0 / 0.9823 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 2.581e-05/0.7275, allocations: 0 / 0.9823 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001054/0.7276, allocations: 15.92 kB / 0.9823 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 5.207e-05/0.7277, allocations: 19.92 kB / 0.9823 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 7.962e-05/0.7278, allocations: 12 kB / 0.9823 GB, free: 5.035 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.292e-05/0.7278, allocations: 11.91 kB / 0.9823 GB, free: 5.023 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 3.479e-05/0.7279, allocations: 11.94 kB / 0.9823 GB, free: 5.012 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.331e-05/0.7279, allocations: 4 kB / 0.9823 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.183e-06/0.7279, allocations: 0 / 0.9823 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.999e-05/0.7279, allocations: 7.984 kB / 0.9824 GB, free: 5 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.441e-05/0.728, allocations: 25.7 kB / 0.9824 GB, free: 4.969 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 5.031e-05/0.728, allocations: 19.95 kB / 0.9824 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.728, allocations: 0 / 0.9824 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.493e-06/0.728, allocations: 0 / 0.9824 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.399e-06/0.7281, allocations: 4 kB / 0.9824 GB, free: 4.945 MB / 0.7325 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.000408/0.7285, allocations: 349.5 kB / 0.9827 GB, free: 4.555 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.992e-05/0.7285, allocations: 8.031 kB / 0.9827 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.087e-05/0.7286, allocations: 30.56 kB / 0.9828 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.368e-05/0.7286, allocations: 7.906 kB / 0.9828 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.7288, allocations: 182.9 kB / 0.983 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.7288, allocations: 4 kB / 0.983 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.865e-06/0.7288, allocations: 4 kB / 0.983 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/0.729, allocations: 63.92 kB / 0.983 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.729, allocations: 0 / 0.983 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.178e-06/0.729, allocations: 0 / 0.983 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.729, allocations: 4 kB / 0.983 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001518/0.7292, allocations: 51.95 kB / 0.9831 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004488/0.7296, allocations: 280.9 kB / 0.9833 GB, free: 3.828 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001212/0.7298, allocations: 34.56 kB / 0.9834 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.741e-05/0.7299, allocations: 28.91 kB / 0.9834 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.042e-05/0.7299, allocations: 0 / 0.9834 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.544e-05/0.7299, allocations: 38.55 kB / 0.9834 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.7299, allocations: 0 / 0.9834 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1): time 0.0003385/0.7303, allocations: 89.69 kB / 0.9835 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.929e-05/0.7303, allocations: 55.44 kB / 0.9836 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.929e-05/0.7304, allocations: 101.8 kB / 0.9837 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.7305, allocations: 25.7 kB / 0.9837 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.933e-05/0.7305, allocations: 92.05 kB / 0.9838 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.783e-05/0.7306, allocations: 3.984 kB / 0.9838 GB, free: 3.309 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.805e-06/0.7306, allocations: 0 / 0.9838 GB, free: 3.309 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.7307, allocations: 310.8 kB / 0.9841 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.677e-05/0.7308, allocations: 23.98 kB / 0.9841 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.274e-05/0.7309, allocations: 19.98 kB / 0.9841 GB, free: 2.953 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.955e-05/0.7309, allocations: 15.98 kB / 0.9841 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.731, allocations: 12.02 kB / 0.9842 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001869/0.7311, allocations: 81.44 kB / 0.9842 GB, free: 2.84 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.7312, allocations: 4 kB / 0.9842 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.7312, allocations: 3.938 kB / 0.9842 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.7312, allocations: 4 kB / 0.9842 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.238e-05/0.7313, allocations: 12.02 kB / 0.9843 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.7313, allocations: 4 kB / 0.9843 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.204e-05/0.7314, allocations: 7.984 kB / 0.9843 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-06/0.7314, allocations: 0 / 0.9843 GB, free: 2.805 MB / 0.7325 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 (1): * Single equations (assignments): 1 * 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.693e-05/0.7315, allocations: 113.8 kB / 0.9844 GB, free: 2.684 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.337e-05/0.7315, allocations: 3.953 kB / 0.9844 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.987e-05/0.7315, allocations: 7.125 kB / 0.9844 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.7315, allocations: 0 / 0.9844 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.7315, allocations: 4 kB / 0.9844 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.7315, allocations: 0 / 0.9844 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/0.7317, allocations: 157.7 kB / 0.9845 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.7318, allocations: 0 / 0.9845 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.169e-05/0.7318, allocations: 15.94 kB / 0.9846 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.7318, allocations: 256 / 0.9846 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.7318, allocations: 0 / 0.9846 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.7318, allocations: 4 kB / 0.9846 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.7318, allocations: 4 kB / 0.9846 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002528/0.7321, allocations: 171.5 kB / 0.9847 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.661e-05/0.7322, allocations: 77.11 kB / 0.9848 GB, free: 2.168 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.148e-05/0.7322, allocations: 11.98 kB / 0.9848 GB, free: 2.156 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.025e-05/0.7323, allocations: 7.984 kB / 0.9848 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/0.7323, allocations: 0 / 0.9848 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-06/0.7323, allocations: 4 kB / 0.9848 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.192e-05/0.7324, allocations: 83.28 kB / 0.9849 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7324, allocations: 0 / 0.9849 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002148/0.7326, allocations: 11.84 kB / 0.9849 GB, free: 2.051 MB / 0.7325 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 (1): * Single equations (assignments): 1 * 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.0006477/0.7333, allocations: 0.6968 MB / 0.9856 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002092/0.7335, allocations: 47.98 kB / 0.9856 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.7335, allocations: 0 / 0.9856 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 8.186e-05/0.7336, allocations: 28.05 kB / 0.9857 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003216/0.7339, allocations: 3.953 kB / 0.9857 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008984/0.7348, allocations: 418.4 kB / 0.9861 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.7352, allocations: 0.6809 MB / 0.9867 GB, free: 80 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.818e-05/0.7353, allocations: 4 kB / 0.9867 GB, free: 76 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.771e-05/0.7353, allocations: 11.44 kB / 0.9867 GB, free: 64 kB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.7353, allocations: 4 kB / 0.9868 GB, free: 60 kB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01208/0.7474, allocations: 1.045 MB / 0.9878 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003677/0.7478, allocations: 203.9 kB / 0.988 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.838/2.586, allocations: 0 / 0.988 GB, free: 14.96 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator_res.mat does not exist to compare? outputFormat=mat