Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.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.BooleanScalarReplicator,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator",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.001685/0.001686, allocations: 101.5 kB / 15.06 MB, free: 1.094 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.001693/0.001693, allocations: 177.3 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 2.658/2.658, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.563/4.563, allocations: 409.2 MB / 0.6838 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006298/0.0006302, allocations: 8 kB / 0.8375 GB, free: 6.547 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.508/1.509, allocations: 146.8 MB / 0.9809 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.001568/1.511, allocations: 355.8 kB / 0.9812 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002777/1.514, allocations: 1.072 MB / 0.9823 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.884e-05/1.514, allocations: 0 / 0.9823 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001478/1.514, allocations: 4 kB / 0.9823 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.365e-05/1.514, allocations: 0 / 0.9823 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001008/1.515, allocations: 118.5 kB / 0.9824 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001527/1.515, allocations: 35.95 kB / 0.9824 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/1.515, allocations: 7.984 kB / 0.9824 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/1.515, allocations: 31.92 kB / 0.9825 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/1.516, allocations: 23.95 kB / 0.9825 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.582e-05/1.516, allocations: 8 kB / 0.9825 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000125/1.516, allocations: 23.92 kB / 0.9825 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.324e-05/1.516, allocations: 7.984 kB / 0.9825 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001106/1.516, allocations: 33.7 kB / 0.9826 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002088/1.516, allocations: 58.11 kB / 0.9826 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/1.516, allocations: 0 / 0.9826 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of FrontEnd: time 6.683e-06/1.516, allocations: 0 / 0.9826 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.654e-06/1.516, allocations: 3.938 kB / 0.9826 GB, free: 4.516 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.00076/1.517, allocations: 365 kB / 0.983 GB, free: 4.105 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 8.611e-05/1.517, allocations: 16.02 kB / 0.983 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.004e-05/1.517, allocations: 38.56 kB / 0.983 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.317e-05/1.517, allocations: 7.906 kB / 0.983 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003919/1.518, allocations: 183 kB / 0.9832 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/1.518, allocations: 0 / 0.9832 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.628e-05/1.518, allocations: 8 kB / 0.9832 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001985/1.518, allocations: 49.64 kB / 0.9832 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/1.518, allocations: 0 / 0.9832 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/1.518, allocations: 0 / 0.9832 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.178e-06/1.518, allocations: 0 / 0.9832 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.684e-05/1.518, allocations: 12 kB / 0.9833 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006853/1.519, allocations: 304.8 kB / 0.9836 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.091e-05/1.519, allocations: 26.56 kB / 0.9836 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.195e-05/1.519, allocations: 3.938 kB / 0.9836 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000227/1.519, allocations: 67.36 kB / 0.9836 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 4.89e-06/1.519, allocations: 4 kB / 0.9836 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0003451/1.52, allocations: 57.62 kB / 0.9837 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.592e-05/1.52, allocations: 55.41 kB / 0.9838 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001569/1.52, allocations: 105.8 kB / 0.9839 GB, free: 3.031 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.637e-05/1.52, allocations: 29.7 kB / 0.9839 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/1.52, allocations: 92.05 kB / 0.984 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.609e-05/1.52, allocations: 0 / 0.984 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.952e-05/1.52, allocations: 4 kB / 0.984 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002285/1.52, allocations: 322.8 kB / 0.9843 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/1.52, allocations: 27.98 kB / 0.9843 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/1.521, allocations: 42.56 kB / 0.9844 GB, free: 2.496 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001471/1.521, allocations: 61.62 kB / 0.9844 GB, free: 2.43 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/1.521, allocations: 3.953 kB / 0.9844 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004326/1.521, allocations: 143.2 kB / 0.9846 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.041e-05/1.521, allocations: 41.72 kB / 0.9846 GB, free: 2.227 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/1.521, allocations: 4 kB / 0.9846 GB, free: 2.223 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.596e-05/1.521, allocations: 4 kB / 0.9846 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.994e-05/1.521, allocations: 0 / 0.9846 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.283e-05/1.521, allocations: 0 / 0.9846 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004548/1.522, allocations: 43.91 kB / 0.9846 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.386e-05/1.522, allocations: 11.98 kB / 0.9847 GB, free: 2.164 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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.0001778/1.522, allocations: 113.8 kB / 0.9848 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.081e-05/1.522, allocations: 7.953 kB / 0.9848 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.324e-05/1.522, allocations: 3.906 kB / 0.9848 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/1.522, allocations: 0 / 0.9848 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/1.522, allocations: 0 / 0.9848 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/1.522, allocations: 0 / 0.9848 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002185/1.523, allocations: 169.5 kB / 0.9849 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/1.523, allocations: 0 / 0.9849 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.81e-05/1.523, allocations: 11.95 kB / 0.9849 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/1.523, allocations: 3.938 kB / 0.9849 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/1.523, allocations: 0 / 0.9849 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/1.523, allocations: 0 / 0.9849 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/1.523, allocations: 0 / 0.9849 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000183/1.523, allocations: 77.11 kB / 0.985 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.36e-05/1.523, allocations: 81.11 kB / 0.9851 GB, free: 1.605 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.014e-05/1.523, allocations: 7.953 kB / 0.9851 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.593e-05/1.523, allocations: 4 kB / 0.9851 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.878e-05/1.523, allocations: 0 / 0.9851 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/1.523, allocations: 4.312 kB / 0.9851 GB, free: 1.59 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.187e-05/1.523, allocations: 91.2 kB / 0.9852 GB, free: 1.5 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.41e-07/1.523, allocations: 0 / 0.9852 GB, free: 1.5 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004251/1.524, allocations: 20 kB / 0.9852 GB, free: 1.48 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.00078/1.524, allocations: 0.6243 MB / 0.9858 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003806/1.525, allocations: 119.4 kB / 0.9859 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/1.525, allocations: 0 / 0.9859 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 5.273e-05/1.525, allocations: 11.94 kB / 0.986 GB, free: 0.6836 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/1.525, allocations: 15.94 kB / 0.986 GB, free: 0.668 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/1.527, allocations: 0.6402 MB / 0.9866 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000466/1.527, allocations: 0.6809 MB / 0.9873 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.588e-05/1.527, allocations: 8 kB / 0.9873 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.682e-05/1.527, allocations: 15.42 kB / 0.9873 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of SimCode: time 7.21e-07/1.527, allocations: 0 / 0.9873 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02594/1.553, allocations: 1.713 MB / 0.989 GB, free: 13.72 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004659/1.554, allocations: 203.6 kB / 0.9892 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.907/4.461, allocations: 0 / 0.9892 GB, free: 13.48 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat does not exist to compare? outputFormat=mat