Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.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.IntegerScalarReplicator,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator",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.001427/0.001427, allocations: 99.7 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.002317/0.002318, 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 2.642/2.642, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.723/4.723, allocations: 409.2 MB / 0.6838 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006308/0.0006309, allocations: 15.98 kB / 0.8375 GB, free: 6.516 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.629/1.63, allocations: 146.8 MB / 0.9809 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator): time 0.001247/1.631, allocations: 397.1 kB / 0.9813 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001246/1.633, allocations: 0.8181 MB / 0.9821 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.021e-05/1.633, allocations: 0 / 0.9821 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001102/1.633, allocations: 0 / 0.9821 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.428e-05/1.633, allocations: 7.922 kB / 0.9821 GB, free: 5.039 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002082/1.633, allocations: 19.92 kB / 0.9821 GB, free: 5.02 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.937e-05/1.633, allocations: 19.97 kB / 0.9821 GB, free: 5 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/1.633, allocations: 4 kB / 0.9821 GB, free: 4.996 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.355e-05/1.633, allocations: 19.92 kB / 0.9821 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.815e-05/1.634, allocations: 11.98 kB / 0.9821 GB, free: 4.965 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.901e-05/1.634, allocations: 4 kB / 0.9821 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.386e-05/1.634, allocations: 0 / 0.9821 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.425e-05/1.634, allocations: 11.92 kB / 0.9821 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.871e-05/1.634, allocations: 29.7 kB / 0.9822 GB, free: 4.914 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 7.663e-05/1.634, allocations: 23.94 kB / 0.9822 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/1.634, allocations: 0 / 0.9822 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.964e-06/1.634, allocations: 3.938 kB / 0.9822 GB, free: 4.887 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.977e-06/1.634, allocations: 0 / 0.9822 GB, free: 4.887 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005705/1.634, allocations: 349.6 kB / 0.9825 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.65e-05/1.634, allocations: 8.031 kB / 0.9825 GB, free: 4.488 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.004e-05/1.634, allocations: 34.55 kB / 0.9826 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.998e-05/1.635, allocations: 7.906 kB / 0.9826 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002137/1.635, allocations: 178.9 kB / 0.9828 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/1.635, allocations: 0 / 0.9828 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.566e-05/1.635, allocations: 4 kB / 0.9828 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000232/1.635, allocations: 69.62 kB / 0.9828 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/1.635, allocations: 0 / 0.9828 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/1.635, allocations: 11.94 kB / 0.9828 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.799e-05/1.635, allocations: 3.984 kB / 0.9828 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002123/1.635, allocations: 51.95 kB / 0.9829 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005842/1.636, allocations: 284.7 kB / 0.9832 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001584/1.636, allocations: 50.55 kB / 0.9832 GB, free: 3.691 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.862e-05/1.636, allocations: 0 / 0.9832 GB, free: 3.691 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.659e-05/1.636, allocations: 30.56 kB / 0.9832 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/1.636, allocations: 0 / 0.9832 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0005803/1.637, allocations: 105.6 kB / 0.9833 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.721e-05/1.637, allocations: 59.41 kB / 0.9834 GB, free: 3.473 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001666/1.637, allocations: 101.8 kB / 0.9835 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.143e-05/1.637, allocations: 25.7 kB / 0.9835 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/1.637, allocations: 88.05 kB / 0.9836 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.029e-05/1.637, allocations: 0 / 0.9836 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.631e-06/1.637, allocations: 4.125 kB / 0.9836 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001853/1.637, allocations: 318.8 kB / 0.9839 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/1.638, allocations: 23.98 kB / 0.9839 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001226/1.638, allocations: 19.98 kB / 0.9839 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001401/1.638, allocations: 32.03 kB / 0.984 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/1.638, allocations: 3.953 kB / 0.984 GB, free: 2.84 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003223/1.638, allocations: 85.5 kB / 0.9841 GB, free: 2.75 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/1.638, allocations: 9.25 kB / 0.9841 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/1.638, allocations: 0 / 0.9841 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/1.638, allocations: 0 / 0.9841 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/1.639, allocations: 11.98 kB / 0.9841 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/1.639, allocations: 0 / 0.9841 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.006e-05/1.639, allocations: 8 kB / 0.9841 GB, free: 2.723 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/1.639, allocations: 7.922 kB / 0.9841 GB, free: 2.715 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: 1 (intRep.y[3]) * 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 0.0002131/1.639, allocations: 117.9 kB / 0.9842 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.056e-05/1.639, allocations: 3.953 kB / 0.9842 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.432e-05/1.639, allocations: 3.125 kB / 0.9842 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/1.639, allocations: 3.938 kB / 0.9842 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/1.639, allocations: 0 / 0.9842 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/1.639, allocations: 4 kB / 0.9842 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002688/1.639, allocations: 169.6 kB / 0.9844 GB, free: 2.363 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/1.639, allocations: 0 / 0.9844 GB, free: 2.363 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/1.639, allocations: 20.19 kB / 0.9844 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/1.639, allocations: 0 / 0.9844 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/1.639, allocations: 4 kB / 0.9844 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/1.639, allocations: 0 / 0.9844 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/1.639, allocations: 0 / 0.9844 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004262/1.64, allocations: 183.4 kB / 0.9846 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.962e-05/1.64, allocations: 81.02 kB / 0.9847 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/1.64, allocations: 7.953 kB / 0.9847 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/1.64, allocations: 11.97 kB / 0.9847 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.273e-05/1.64, allocations: 8 kB / 0.9847 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.169e-06/1.64, allocations: 0 / 0.9847 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.027e-05/1.64, allocations: 87.3 kB / 0.9848 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.31e-07/1.64, allocations: 0 / 0.9848 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004095/1.641, allocations: 8 kB / 0.9848 GB, free: 1.926 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: 1 (intRep.y[3]) * 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.0009735/1.642, allocations: 0.7085 MB / 0.9855 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003467/1.642, allocations: 47.95 kB / 0.9855 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/1.642, allocations: 4.094 kB / 0.9855 GB, free: 1.141 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001556/1.642, allocations: 31.97 kB / 0.9856 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/1.643, allocations: 3.953 kB / 0.9856 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/1.644, allocations: 426.5 kB / 0.986 GB, free: 0.6328 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006198/1.645, allocations: 0.6887 MB / 0.9866 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.472e-05/1.645, allocations: 4 kB / 0.9866 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.199e-05/1.645, allocations: 11.44 kB / 0.9867 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of SimCode: time 1.443e-06/1.645, allocations: 4 kB / 0.9867 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02099/1.666, allocations: 1.224 MB / 0.9879 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003469/1.666, allocations: 208.6 kB / 0.988 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.995/4.661, allocations: 0 / 0.988 GB, free: 14.61 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator_res.mat does not exist to compare? outputFormat=mat