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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008405/0.0008405, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8734/0.8734, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.742/1.742, allocations: 389 MB / 0.633 GB, free: 12.67 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.334e-06/2.334e-06, allocations: 0 / 0.9997 GB, free: 13.51 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.509e-05/1.742e-05, allocations: 6.281 kB / 0.9997 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.001185/0.001202, allocations: 0.6073 MB / 1 GB, free: 12.9 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001065/0.002267, allocations: 1.132 MB / 1.001 GB, free: 11.76 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.131e-05/0.002308, allocations: 4 kB / 1.001 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 9.05e-05/0.002399, allocations: 3.938 kB / 1.001 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 2.243e-05/0.002421, allocations: 15.92 kB / 1.001 GB, free: 11.73 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.000372/0.002793, allocations: 126 kB / 1.002 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001241/0.002917, allocations: 87.83 kB / 1.002 GB, free: 11.53 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.662e-05/0.003004, allocations: 15.91 kB / 1.002 GB, free: 11.51 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 6.389e-05/0.003068, allocations: 43.97 kB / 1.002 GB, free: 11.47 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 8.34e-05/0.003151, allocations: 19.97 kB / 1.002 GB, free: 11.45 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.83e-05/0.00317, allocations: 8 kB / 1.002 GB, free: 11.44 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.467e-05/0.003224, allocations: 35.91 kB / 1.002 GB, free: 11.41 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 5.568e-05/0.00328, allocations: 7.984 kB / 1.002 GB, free: 11.4 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.491e-05/0.003325, allocations: 23.98 kB / 1.002 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001519/0.003477, allocations: 111.6 kB / 1.002 GB, free: 11.27 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.704e-06/0.003479, allocations: 0 / 1.002 GB, free: 11.27 MB / 0.9636 GB Notification: Performance of FrontEnd: time 7.42e-07/0.003479, allocations: 0 / 1.002 GB, free: 11.27 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.576e-06/0.003483, allocations: 4 kB / 1.002 GB, free: 11.26 MB / 0.9636 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.0003256/0.003808, allocations: 306.2 kB / 1.002 GB, free: 10.93 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.003844, allocations: 8.75 kB / 1.002 GB, free: 10.92 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.406e-05/0.003868, allocations: 30.75 kB / 1.002 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.112e-05/0.003899, allocations: 4.938 kB / 1.002 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/0.004022, allocations: 129.7 kB / 1.002 GB, free: 10.72 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.004032, allocations: 4.375 kB / 1.002 GB, free: 10.72 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.004046, allocations: 8.359 kB / 1.002 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.12e-05/0.004128, allocations: 46.25 kB / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.004134, allocations: 4.188 kB / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.004141, allocations: 384 / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.004146, allocations: 4.125 kB / 1.002 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.48e-05/0.00417, allocations: 15.94 kB / 1.002 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002611/0.004431, allocations: 252 kB / 1.003 GB, free: 10.35 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 4.02e-05/0.004472, allocations: 22.52 kB / 1.003 GB, free: 10.32 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.804e-05/0.00449, allocations: 28.84 kB / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 6.001e-06/0.004496, allocations: 0 / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001013/0.004597, allocations: 63.34 kB / 1.003 GB, free: 10.21 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=3): time 6.41e-07/0.004598, allocations: 3.938 kB / 1.003 GB, free: 10.21 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3): time 0.0001392/0.004737, allocations: 61.67 kB / 1.003 GB, free: 10.14 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.984e-05/0.004767, allocations: 59.34 kB / 1.003 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.275e-05/0.004819, allocations: 105.8 kB / 1.003 GB, free: 9.957 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.004835, allocations: 29.7 kB / 1.003 GB, free: 9.922 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.555e-05/0.004871, allocations: 92.09 kB / 1.003 GB, free: 9.828 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 7.905e-06/0.004878, allocations: 7.938 kB / 1.003 GB, free: 9.82 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.892e-05/0.004917, allocations: 33.7 kB / 1.003 GB, free: 9.781 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 6.645e-05/0.004984, allocations: 318.8 kB / 1.003 GB, free: 9.461 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.87e-05/0.005043, allocations: 57.69 kB / 1.003 GB, free: 9.398 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.005195, allocations: 80.25 kB / 1.004 GB, free: 9.305 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.092e-05/0.005266, allocations: 84.2 kB / 1.004 GB, free: 9.207 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.005269, allocations: 3.938 kB / 1.004 GB, free: 9.203 MB / 0.9636 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001502/0.005419, allocations: 172.9 kB / 1.004 GB, free: 9.016 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.005446, allocations: 41.69 kB / 1.004 GB, free: 8.969 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.00545, allocations: 4.094 kB / 1.004 GB, free: 8.965 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.839e-06/0.00546, allocations: 0 / 1.004 GB, free: 8.965 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.2e-05/0.005472, allocations: 4 kB / 1.004 GB, free: 8.961 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.157e-06/0.005476, allocations: 0 / 1.004 GB, free: 8.961 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/0.005595, allocations: 23.97 kB / 1.004 GB, free: 8.938 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.33e-05/0.005608, allocations: 4 kB / 1.004 GB, free: 8.934 MB / 0.9636 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 (booPul.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.932e-05/0.005667, allocations: 125.8 kB / 1.004 GB, free: 8.801 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.65e-06/0.005673, allocations: 3.953 kB / 1.004 GB, free: 8.797 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.755e-05/0.005691, allocations: 8 kB / 1.004 GB, free: 8.781 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.005692, allocations: 0 / 1.004 GB, free: 8.781 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.247e-06/0.005695, allocations: 4 kB / 1.004 GB, free: 8.777 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.005698, allocations: 0 / 1.004 GB, free: 8.777 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.082e-05/0.005769, allocations: 137 kB / 1.004 GB, free: 8.602 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.005769, allocations: 0 / 1.004 GB, free: 8.602 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.136e-06/0.005773, allocations: 4 kB / 1.004 GB, free: 8.598 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.92e-07/0.005773, allocations: 0 / 1.004 GB, free: 8.598 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.005779, allocations: 7.922 kB / 1.004 GB, free: 8.59 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.00578, allocations: 0 / 1.004 GB, free: 8.59 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.005781, allocations: 4 kB / 1.004 GB, free: 8.586 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.964e-05/0.005841, allocations: 81.06 kB / 1.004 GB, free: 8.488 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 6.703e-06/0.005847, allocations: 7.953 kB / 1.004 GB, free: 8.48 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.125e-06/0.005855, allocations: 3.938 kB / 1.004 GB, free: 8.477 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.053e-06/0.005862, allocations: 0 / 1.004 GB, free: 8.477 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.075e-05/0.005883, allocations: 3.984 kB / 1.004 GB, free: 8.473 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-06/0.005886, allocations: 4 kB / 1.004 GB, free: 8.469 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.585e-05/0.005912, allocations: 83.28 kB / 1.004 GB, free: 8.387 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.005912, allocations: 0 / 1.004 GB, free: 8.387 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001347/0.006047, allocations: 19.94 kB / 1.004 GB, free: 8.367 MB / 0.9636 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002432/0.00629, allocations: 0.6165 MB / 1.005 GB, free: 7.723 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001449/0.006435, allocations: 153.1 kB / 1.005 GB, free: 7.555 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.202e-06/0.006436, allocations: 0 / 1.005 GB, free: 7.555 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 1.466e-05/0.006451, allocations: 7.938 kB / 1.005 GB, free: 7.547 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001381/0.006589, allocations: 18.23 kB / 1.005 GB, free: 7.531 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008889/0.007477, allocations: 1.485 MB / 1.007 GB, free: 5.918 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.451e-05/0.007512, allocations: 63.34 kB / 1.007 GB, free: 5.836 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 1.595e-05/0.007528, allocations: 8.188 kB / 1.007 GB, free: 5.828 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.627e-05/0.007554, allocations: 16.48 kB / 1.007 GB, free: 5.812 MB / 0.9636 GB Notification: Performance of SimCode: time 3.8e-07/0.007555, allocations: 4 kB / 1.007 GB, free: 5.809 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01477/0.02232, allocations: 2.735 MB / 1.009 GB, free: 3.234 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.606/6.628, allocations: 6.75 kB / 1.009 GB, free: 3.23 MB / 0.9636 GB " [Timeout remaining time 293] (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/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 --stepSize=0.0004 --timeout=800 --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) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.550958945415914]