Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.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.0008312/0.0008312, 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.001425/0.001425, 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.8896/0.8896, 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 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.729/1.729, allocations: 377.8 MB / 0.6221 GB, free: 8.668 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.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 3.938 kB / 0.981 GB, free: 2.574 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.562e-05/1.758e-05, allocations: 2.281 kB / 0.981 GB, free: 2.57 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.001496/0.001514, allocations: 0.8049 MB / 0.9818 GB, free: 1.77 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0001065/0.00162, allocations: 39.78 kB / 0.9818 GB, free: 1.73 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.65e-05/0.001667, allocations: 0 / 0.9818 GB, free: 1.73 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.696e-05/0.001704, allocations: 11.88 kB / 0.9818 GB, free: 1.719 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.339e-05/0.001767, allocations: 7.938 kB / 0.9818 GB, free: 1.711 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 4.572e-05/0.001813, allocations: 15.98 kB / 0.9818 GB, free: 1.695 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 9.867e-05/0.001912, allocations: 63.77 kB / 0.9819 GB, free: 1.633 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.002028, allocations: 35.97 kB / 0.9819 GB, free: 1.598 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 6.269e-05/0.002091, allocations: 35.91 kB / 0.982 GB, free: 1.562 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.29e-05/0.002134, allocations: 19.91 kB / 0.982 GB, free: 1.543 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.175e-05/0.002156, allocations: 4 kB / 0.982 GB, free: 1.539 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 7.494e-06/0.002163, allocations: 8 kB / 0.982 GB, free: 1.531 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.77e-05/0.002181, allocations: 15.92 kB / 0.982 GB, free: 1.516 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 2.617e-05/0.002207, allocations: 15.94 kB / 0.982 GB, free: 1.5 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 9.791e-05/0.002305, allocations: 83.61 kB / 0.9821 GB, free: 1.418 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.002307, allocations: 0 / 0.9821 GB, free: 1.418 MB / 0.9323 GB Notification: Performance of FrontEnd: time 8.31e-07/0.002308, allocations: 0 / 0.9821 GB, free: 1.418 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 3.787e-06/0.002312, allocations: 4 kB / 0.9821 GB, free: 1.414 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0003295/0.002641, allocations: 302 kB / 0.9824 GB, free: 1.086 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.002679, allocations: 8.031 kB / 0.9824 GB, free: 1.078 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.002e-05/0.002709, allocations: 42.69 kB / 0.9824 GB, free: 1.027 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.448e-05/0.002733, allocations: 16.84 kB / 0.9825 GB, free: 1.012 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001571/0.00289, allocations: 137.6 kB / 0.9826 GB, free: 0.8516 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.418e-06/0.0029, allocations: 4.375 kB / 0.9826 GB, free: 0.8477 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.939e-06/0.00291, allocations: 8.375 kB / 0.9826 GB, free: 0.8398 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.00303, allocations: 90.91 kB / 0.9827 GB, free: 0.7422 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.003036, allocations: 192 / 0.9827 GB, free: 0.7422 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.749e-06/0.003046, allocations: 16.31 kB / 0.9827 GB, free: 0.7266 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.003052, allocations: 4.125 kB / 0.9827 GB, free: 0.7227 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.037e-05/0.003113, allocations: 39.92 kB / 0.9827 GB, free: 0.6836 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003776/0.00349, allocations: 383.8 kB / 0.9831 GB, free: 268 kB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 4.893e-05/0.003539, allocations: 45.33 kB / 0.9832 GB, free: 204 kB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.683e-05/0.003566, allocations: 13.78 kB / 0.9832 GB, free: 184 kB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 6.883e-06/0.003573, allocations: 0 / 0.9832 GB, free: 184 kB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.005e-05/0.003593, allocations: 38.56 kB / 0.9832 GB, free: 136 kB / 0.9323 GB Notification: Performance of pre-optimization done (n=2): time 7.91e-07/0.003594, allocations: 0 / 0.9832 GB, free: 136 kB / 0.9323 GB Notification: Performance of matching and sorting (n=2): time 0.0001337/0.003728, allocations: 53.59 kB / 0.9833 GB, free: 76 kB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.229e-05/0.00378, allocations: 89.03 kB / 0.9833 GB, free: 15.97 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.003883, allocations: 157 kB / 0.9835 GB, free: 15.81 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 8.907e-06/0.003892, allocations: 25.7 kB / 0.9835 GB, free: 15.78 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.187e-05/0.003944, allocations: 104 kB / 0.9836 GB, free: 15.67 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 7.304e-06/0.003951, allocations: 15.81 kB / 0.9836 GB, free: 15.66 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.898e-05/0.00398, allocations: 21.7 kB / 0.9836 GB, free: 15.63 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.463e-05/0.004054, allocations: 318.8 kB / 0.984 GB, free: 15.31 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.23e-05/0.004067, allocations: 4 kB / 0.984 GB, free: 15.3 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.025e-05/0.004087, allocations: 25.95 kB / 0.984 GB, free: 15.27 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.103e-05/0.004118, allocations: 21.72 kB / 0.984 GB, free: 15.25 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.00412, allocations: 0 / 0.984 GB, free: 15.25 MB / 0.948 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.168e-05/0.004182, allocations: 65.58 kB / 0.9841 GB, free: 15.18 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.004194, allocations: 4 kB / 0.9841 GB, free: 15.17 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.004198, allocations: 0 / 0.9841 GB, free: 15.17 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.00421, allocations: 0 / 0.9841 GB, free: 15.17 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.116e-05/0.004261, allocations: 15.88 kB / 0.9841 GB, free: 15.16 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.004266, allocations: 64 / 0.9841 GB, free: 15.16 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.645e-05/0.004282, allocations: 4 kB / 0.9841 GB, free: 15.15 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.477e-06/0.004286, allocations: 4 kB / 0.9841 GB, free: 15.15 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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.443e-05/0.00434, allocations: 113.8 kB / 0.9842 GB, free: 15.03 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.272e-05/0.004363, allocations: 11.91 kB / 0.9842 GB, free: 15.02 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.832e-05/0.004381, allocations: 19.83 kB / 0.9842 GB, free: 15 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.004384, allocations: 3.984 kB / 0.9842 GB, free: 15 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.004388, allocations: 3.938 kB / 0.9842 GB, free: 14.99 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.00439, allocations: 0 / 0.9842 GB, free: 14.99 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002425/0.004633, allocations: 429.9 kB / 0.9846 GB, free: 14.52 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.004634, allocations: 4.062 kB / 0.9847 GB, free: 14.51 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.183e-05/0.004646, allocations: 7.938 kB / 0.9847 GB, free: 14.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-06/0.004647, allocations: 0 / 0.9847 GB, free: 14.5 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.1e-06/0.004653, allocations: 4 kB / 0.9847 GB, free: 14.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.004654, allocations: 3.938 kB / 0.9847 GB, free: 14.5 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.004657, allocations: 7.984 kB / 0.9847 GB, free: 14.49 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.182e-05/0.004709, allocations: 69.95 kB / 0.9847 GB, free: 14.4 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.126e-05/0.00473, allocations: 19.88 kB / 0.9848 GB, free: 14.38 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.01e-05/0.00474, allocations: 4 kB / 0.9848 GB, free: 14.38 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.808e-06/0.00475, allocations: 0 / 0.9848 GB, free: 14.38 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.105e-05/0.004761, allocations: 7.969 kB / 0.9848 GB, free: 14.37 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-06/0.004763, allocations: 0 / 0.9848 GB, free: 14.37 MB / 0.948 GB Notification: Performance of sorting global known variables: time 5.862e-05/0.004822, allocations: 122.1 kB / 0.9849 GB, free: 14.25 MB / 0.948 GB Notification: Performance of sort global known variables: time 6.1e-08/0.004822, allocations: 0 / 0.9849 GB, free: 14.25 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001207/0.004942, allocations: 11.94 kB / 0.9849 GB, free: 14.24 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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.0002263/0.005169, allocations: 0.6171 MB / 0.9855 GB, free: 13.59 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 6.626e-05/0.005235, allocations: 15.94 kB / 0.9855 GB, free: 13.57 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.005237, allocations: 160 / 0.9855 GB, free: 13.57 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 6.092e-06/0.005243, allocations: 8 kB / 0.9855 GB, free: 13.56 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001142/0.005357, allocations: 11.91 kB / 0.9855 GB, free: 13.55 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000812/0.006169, allocations: 1.343 MB / 0.9868 GB, free: 12.1 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.285e-05/0.006212, allocations: 75.33 kB / 0.9869 GB, free: 12.01 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.629e-05/0.006238, allocations: 12.61 kB / 0.9869 GB, free: 12 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4e-05/0.006278, allocations: 24.5 kB / 0.987 GB, free: 11.97 MB / 0.948 GB Notification: Performance of SimCode: time 4.7e-07/0.006279, allocations: 3.938 kB / 0.987 GB, free: 11.97 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01779/0.02407, allocations: 2.223 MB / 0.9891 GB, free: 9.883 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.638/6.663, allocations: 12.56 kB / 0.9891 GB, free: 9.879 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_From_ton_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_UnitConversions_Validation_From_ton.fmu > Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_UnitConversions_Validation_From_ton.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.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.714268343523145]