Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.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.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",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.001425/0.001425, allocations: 99.78 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.001779/0.001779, 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.025/2.025, allocations: 223.2 MB / 239.9 MB, free: 5.234 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.975/2.975, allocations: 409.2 MB / 0.6838 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.0003568, allocations: 8 kB / 0.8375 GB, free: 6.523 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8086/0.809, allocations: 146.8 MB / 0.9809 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001043/0.8101, allocations: 0.5188 MB / 0.9814 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0001123/0.8103, allocations: 43.8 kB / 0.9814 GB, free: 5.707 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.603e-05/0.8103, allocations: 0 / 0.9814 GB, free: 5.707 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.434e-05/0.8103, allocations: 7.922 kB / 0.9814 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.346e-05/0.8104, allocations: 7.984 kB / 0.9814 GB, free: 5.691 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 4.347e-05/0.8105, allocations: 11.98 kB / 0.9814 GB, free: 5.68 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.624e-05/0.8106, allocations: 35.91 kB / 0.9815 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002011/0.8108, allocations: 32.17 kB / 0.9815 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.682e-05/0.8109, allocations: 19.86 kB / 0.9815 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.163e-05/0.8109, allocations: 19.86 kB / 0.9815 GB, free: 5.57 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.7e-05/0.8109, allocations: 4 kB / 0.9815 GB, free: 5.566 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.815e-06/0.811, allocations: 0 / 0.9815 GB, free: 5.566 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.596e-05/0.811, allocations: 11.92 kB / 0.9816 GB, free: 5.555 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.151e-05/0.811, allocations: 33.64 kB / 0.9816 GB, free: 5.516 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 8.452e-05/0.8111, allocations: 50.14 kB / 0.9816 GB, free: 5.469 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.8111, allocations: 4 kB / 0.9816 GB, free: 5.465 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.485e-06/0.8111, allocations: 0 / 0.9816 GB, free: 5.465 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.74e-06/0.8111, allocations: 0 / 0.9816 GB, free: 5.465 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005116/0.8117, allocations: 375 kB / 0.982 GB, free: 5.051 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.953e-05/0.8117, allocations: 8.031 kB / 0.982 GB, free: 5.043 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.682e-05/0.8118, allocations: 38.56 kB / 0.982 GB, free: 4.996 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.824e-05/0.8118, allocations: 7.906 kB / 0.9821 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002409/0.8121, allocations: 194.9 kB / 0.9822 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.8121, allocations: 7.938 kB / 0.9822 GB, free: 4.75 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.387e-05/0.8121, allocations: 12 kB / 0.9823 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001804/0.8123, allocations: 95.25 kB / 0.9823 GB, free: 4.629 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.8123, allocations: 0 / 0.9823 GB, free: 4.629 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.8123, allocations: 4 kB / 0.9824 GB, free: 4.625 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.8123, allocations: 4 kB / 0.9824 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.609e-05/0.8124, allocations: 31.92 kB / 0.9824 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006235/0.8131, allocations: 432.7 kB / 0.9828 GB, free: 4.113 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 6.018e-05/0.8131, allocations: 45.23 kB / 0.9828 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.027e-05/0.8131, allocations: 0 / 0.9828 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.8132, allocations: 38.5 kB / 0.9829 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 8.02e-07/0.8132, allocations: 0 / 0.9829 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0001991/0.8134, allocations: 53.61 kB / 0.9829 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.694e-05/0.8135, allocations: 85.06 kB / 0.983 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001987/0.8137, allocations: 162.6 kB / 0.9832 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.8137, allocations: 29.7 kB / 0.9832 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.764e-05/0.8138, allocations: 104 kB / 0.9833 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.007e-05/0.8138, allocations: 8.094 kB / 0.9833 GB, free: 3.527 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-06/0.8138, allocations: 4 kB / 0.9833 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.8139, allocations: 322.8 kB / 0.9836 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.366e-05/0.8139, allocations: 0 / 0.9836 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.805e-05/0.814, allocations: 29.64 kB / 0.9836 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.395e-05/0.814, allocations: 8 kB / 0.9837 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.814, allocations: 0 / 0.9837 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.785e-05/0.8141, allocations: 53.61 kB / 0.9837 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.8141, allocations: 4.625 kB / 0.9837 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.8141, allocations: 4 kB / 0.9837 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.8141, allocations: 0 / 0.9837 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.795e-05/0.8142, allocations: 11.92 kB / 0.9837 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.8142, allocations: 3.953 kB / 0.9837 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.978e-05/0.8143, allocations: 8 kB / 0.9837 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.8143, allocations: 4.094 kB / 0.9837 GB, free: 3.062 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.254e-05/0.8144, allocations: 113.8 kB / 0.9838 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.994e-05/0.8144, allocations: 15.95 kB / 0.9839 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.233e-05/0.8144, allocations: 7.875 kB / 0.9839 GB, free: 2.922 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.8145, allocations: 7.922 kB / 0.9839 GB, free: 2.914 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.8145, allocations: 0 / 0.9839 GB, free: 2.914 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.8145, allocations: 7.953 kB / 0.9839 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005182/0.815, allocations: 466.7 kB / 0.9843 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.815, allocations: 4 kB / 0.9843 GB, free: 2.383 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.798e-05/0.815, allocations: 4.062 kB / 0.9843 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.815, allocations: 4 kB / 0.9843 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.8151, allocations: 0 / 0.9843 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.8151, allocations: 3.953 kB / 0.9843 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.8151, allocations: 0 / 0.9843 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001674/0.8152, allocations: 91.55 kB / 0.9844 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.91e-05/0.8153, allocations: 89.05 kB / 0.9845 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.8153, allocations: 3.953 kB / 0.9845 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.153e-05/0.8154, allocations: 4 kB / 0.9845 GB, free: 2.141 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.499e-05/0.8154, allocations: 3.984 kB / 0.9845 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-06/0.8154, allocations: 0 / 0.9845 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.188e-05/0.8155, allocations: 125.1 kB / 0.9846 GB, free: 2.016 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8155, allocations: 3.938 kB / 0.9847 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0001932/0.8157, allocations: 11.94 kB / 0.9847 GB, free: 2 MB / 0.7325 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 (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.000456/0.8161, allocations: 0.6953 MB / 0.9853 GB, free: 1.266 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 9.979e-05/0.8163, allocations: 16 kB / 0.9854 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.8163, allocations: 160 / 0.9854 GB, free: 1.25 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.172e-05/0.8163, allocations: 11.94 kB / 0.9854 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001361/0.8164, allocations: 8 kB / 0.9854 GB, free: 1.23 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009668/0.8174, allocations: 0.6965 MB / 0.9861 GB, free: 484 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.8178, allocations: 0.6965 MB / 0.9867 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.103e-05/0.8179, allocations: 4.438 kB / 0.9867 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.564e-05/0.8179, allocations: 31.42 kB / 0.9868 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of SimCode: time 2.31e-07/0.8179, allocations: 0 / 0.9868 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01281/0.8307, allocations: 1.467 MB / 0.9882 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001933/0.831, allocations: 201.8 kB / 0.9884 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.071/2.902, allocations: 0 / 0.9884 GB, free: 14.14 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat does not exist to compare? outputFormat=mat