Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.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.0008085/0.0008085, 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.0007836/0.0007836, 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.9207/0.9207, allocations: 177.2 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.739/1.739, allocations: 377.8 MB / 0.6221 GB, free: 8.633 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_12_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_12_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 0.981 GB, free: 2.539 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.806e-05/1.962e-05, allocations: 6.219 kB / 0.981 GB, free: 2.531 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift): time 0.002502/0.002522, allocations: 2.025 MB / 0.983 GB, free: 0.4961 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.002549/0.005071, allocations: 2.37 MB / 0.9853 GB, free: 14.11 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001245/0.005195, allocations: 3.938 kB / 0.9853 GB, free: 14.11 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.001019/0.006214, allocations: 469.7 kB / 0.9857 GB, free: 13.65 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.0001308/0.006345, allocations: 71.53 kB / 0.9858 GB, free: 13.58 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.000741/0.007086, allocations: 281.8 kB / 0.9861 GB, free: 13.3 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0003526/0.007439, allocations: 339.9 kB / 0.9864 GB, free: 12.97 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.007569, allocations: 41.25 kB / 0.9864 GB, free: 12.93 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.007739, allocations: 159.5 kB / 0.9866 GB, free: 12.77 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001621/0.007901, allocations: 111.7 kB / 0.9867 GB, free: 12.66 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.468e-05/0.007925, allocations: 8 kB / 0.9867 GB, free: 12.66 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005063/0.008432, allocations: 335.5 kB / 0.987 GB, free: 12.33 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.008559, allocations: 111.5 kB / 0.9871 GB, free: 12.22 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.008694, allocations: 95.61 kB / 0.9872 GB, free: 12.12 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.001197/0.009891, allocations: 0.845 MB / 0.988 GB, free: 11.28 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.009896, allocations: 4 kB / 0.9881 GB, free: 11.27 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.805e-06/0.009899, allocations: 0 / 0.9881 GB, free: 11.27 MB / 0.948 GB Notification: Performance of Transformations before backend: time 1.285e-05/0.009912, allocations: 0 / 0.9881 GB, free: 11.27 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001022/0.01093, allocations: 0.8197 MB / 0.9889 GB, free: 10.41 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.01098, allocations: 8.031 kB / 0.9889 GB, free: 10.41 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.861e-05/0.01102, allocations: 42.73 kB / 0.9889 GB, free: 10.36 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.012e-05/0.01111, allocations: 76.47 kB / 0.989 GB, free: 10.28 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004388/0.01155, allocations: 334.3 kB / 0.9893 GB, free: 9.926 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.082e-05/0.01157, allocations: 8.375 kB / 0.9893 GB, free: 9.918 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.549e-05/0.01159, allocations: 12.31 kB / 0.9893 GB, free: 9.906 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002461/0.01183, allocations: 164.1 kB / 0.9895 GB, free: 9.734 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.01184, allocations: 4 kB / 0.9895 GB, free: 9.73 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.01186, allocations: 4 kB / 0.9895 GB, free: 9.727 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.01186, allocations: 4 kB / 0.9895 GB, free: 9.723 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001398/0.012, allocations: 129.6 kB / 0.9896 GB, free: 9.59 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007369/0.01274, allocations: 0.4995 MB / 0.9901 GB, free: 9.047 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001584/0.0129, allocations: 128.2 kB / 0.9902 GB, free: 8.906 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.079e-05/0.01297, allocations: 82.67 kB / 0.9903 GB, free: 8.816 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.181e-05/0.01301, allocations: 7.984 kB / 0.9903 GB, free: 8.809 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001684/0.01318, allocations: 163 kB / 0.9905 GB, free: 8.625 MB / 0.948 GB Notification: Performance of pre-optimization done (n=11): time 1.854e-06/0.01318, allocations: 0 / 0.9905 GB, free: 8.625 MB / 0.948 GB Notification: Performance of matching and sorting (n=11): time 0.0003817/0.01356, allocations: 382.2 kB / 0.9908 GB, free: 8.227 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.169e-05/0.01362, allocations: 81.11 kB / 0.9909 GB, free: 8.129 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006087/0.01422, allocations: 0.7934 MB / 0.9917 GB, free: 7.328 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.01424, allocations: 29.7 kB / 0.9917 GB, free: 7.293 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001778/0.01442, allocations: 296.3 kB / 0.992 GB, free: 7 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.511e-05/0.01444, allocations: 27.75 kB / 0.992 GB, free: 6.973 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.442e-05/0.01449, allocations: 29.7 kB / 0.992 GB, free: 6.938 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.053e-05/0.01457, allocations: 310 kB / 0.9923 GB, free: 6.629 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.407e-05/0.01464, allocations: 77.69 kB / 0.9924 GB, free: 6.547 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.197e-05/0.01471, allocations: 81.67 kB / 0.9925 GB, free: 6.461 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001165/0.01482, allocations: 164.2 kB / 0.9926 GB, free: 6.285 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.01482, allocations: 3.938 kB / 0.9926 GB, free: 6.281 MB / 0.948 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002247/0.01505, allocations: 300.6 kB / 0.9929 GB, free: 5.969 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 3.515e-05/0.01508, allocations: 41.62 kB / 0.993 GB, free: 5.922 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.01509, allocations: 0 / 0.993 GB, free: 5.922 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.0151, allocations: 4 kB / 0.993 GB, free: 5.918 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.463e-05/0.01517, allocations: 8 kB / 0.993 GB, free: 5.91 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.01517, allocations: 0 / 0.993 GB, free: 5.91 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.581e-05/0.01525, allocations: 15.94 kB / 0.993 GB, free: 5.895 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.01527, allocations: 4 kB / 0.993 GB, free: 5.891 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (booleanToInteger.y,greaterThreshold.y,speRat.nextEventScaled,speRat.nextEvent,$PRE.speRat.nextEvent,speRat.last,speRat.b,speRat.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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 0.000223/0.01549, allocations: 335.4 kB / 0.9933 GB, free: 5.547 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.019e-05/0.01553, allocations: 67.58 kB / 0.9934 GB, free: 5.48 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003335/0.01586, allocations: 346.9 kB / 0.9937 GB, free: 5.121 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.01587, allocations: 0 / 0.9937 GB, free: 5.121 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.01587, allocations: 7.938 kB / 0.9937 GB, free: 5.113 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.01588, allocations: 4 kB / 0.9937 GB, free: 5.109 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003086/0.01619, allocations: 336.5 kB / 0.9941 GB, free: 4.738 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.01619, allocations: 0 / 0.9941 GB, free: 4.738 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.097e-05/0.01623, allocations: 4 kB / 0.9941 GB, free: 4.734 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.01624, allocations: 4 kB / 0.9941 GB, free: 4.73 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.01625, allocations: 7.922 kB / 0.9941 GB, free: 4.723 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.01626, allocations: 0 / 0.9941 GB, free: 4.723 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.01626, allocations: 4 kB / 0.9941 GB, free: 4.719 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006377/0.0169, allocations: 348 kB / 0.9944 GB, free: 4.348 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.302e-05/0.01698, allocations: 71.56 kB / 0.9945 GB, free: 4.277 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.908e-05/0.01702, allocations: 15.94 kB / 0.9945 GB, free: 4.262 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.785e-05/0.01709, allocations: 7.984 kB / 0.9945 GB, free: 4.254 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.319e-05/0.01713, allocations: 7.984 kB / 0.9945 GB, free: 4.246 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.01714, allocations: 8 kB / 0.9945 GB, free: 4.238 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0004257/0.01756, allocations: 0.5809 MB / 0.9951 GB, free: 3.664 MB / 0.948 GB Notification: Performance of sort global known variables: time 7e-08/0.01756, allocations: 0 / 0.9951 GB, free: 3.664 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.000322/0.01789, allocations: 127.8 kB / 0.9952 GB, free: 3.539 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,speRat.a,speRat.b,speRat.last,speRat.nextEvent,speRat.nextEventScaled,greaterThreshold.y,booleanToInteger.y) * Number of discrete states: 6 (speRat.nextEvent,speRat.last,speRat.nextEventScaled,speRat.b,speRat.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.0006814/0.01857, allocations: 0.9783 MB / 0.9962 GB, free: 2.516 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002218/0.01879, allocations: 246.7 kB / 0.9964 GB, free: 2.25 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.01879, allocations: 4 kB / 0.9964 GB, free: 2.246 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.637e-05/0.01888, allocations: 153 kB / 0.9965 GB, free: 2.078 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003543/0.01923, allocations: 125.2 kB / 0.9967 GB, free: 1.957 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00485/0.02408, allocations: 4.836 MB / 1.001 GB, free: 12.98 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002503/0.02433, allocations: 378.9 kB / 1.002 GB, free: 12.59 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.000107/0.02444, allocations: 29.89 kB / 1.002 GB, free: 12.56 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.02458, allocations: 168.4 kB / 1.002 GB, free: 12.4 MB / 0.9636 GB Notification: Performance of SimCode: time 1.192e-06/0.02458, allocations: 0 / 1.002 GB, free: 12.4 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02909/0.05367, allocations: 13.21 MB / 1.015 GB, free: 15.48 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.908/6.961, allocations: 0 / 1.015 GB, free: 15.48 MB / 0.9792 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift_fmu --startTime=0 --stopTime=3600 --stepSize=1.44 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.fmu > Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_SpeedShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.SpeedShift.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: 11.04105724208057]