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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.769/1.769, allocations: 390.4 MB / 397.7 MB, free: 10.61 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009375/0.0009375, allocations: 181.2 kB / 490.8 MB, free: 11.15 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.116/1.116, allocations: 221.4 MB / 0.7863 GB, free: 13.53 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008985/0.0008985, allocations: 90.44 kB / 0.9264 GB, free: 4.469 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2429/0.2439, allocations: 149.1 MB / 1.072 GB, free: 15.41 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5384/0.7823, allocations: 143 MB / 1.212 GB, free: 155.8 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1412/0.9236, allocations: 148.8 MB / 1.357 GB, free: 42.73 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000169/0.9238, allocations: 68.62 kB / 1.357 GB, free: 42.66 MB / 0.8855 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.002199/0.926, allocations: 1.131 MB / 1.358 GB, free: 41.51 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 2.953e-05/0.9261, allocations: 8 kB / 1.358 GB, free: 41.5 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.074e-05/0.9261, allocations: 15.19 kB / 1.358 GB, free: 41.49 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.9262, allocations: 183.8 kB / 1.358 GB, free: 41.27 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.9262, allocations: 4.625 kB / 1.358 GB, free: 41.27 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-06/0.9263, allocations: 4 kB / 1.358 GB, free: 41.26 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.666e-05/0.9263, allocations: 32.91 kB / 1.358 GB, free: 41.23 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.42e-05/0.9264, allocations: 80.06 kB / 1.358 GB, free: 41.14 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.752e-06/0.9265, allocations: 4.438 kB / 1.358 GB, free: 41.14 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.096e-06/0.9265, allocations: 5.188 kB / 1.358 GB, free: 41.13 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.9265, allocations: 0 / 1.358 GB, free: 41.13 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003493/0.9268, allocations: 409.2 kB / 1.359 GB, free: 40.7 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 3.453e-05/0.9269, allocations: 38.19 kB / 1.359 GB, free: 40.64 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.67e-05/0.9269, allocations: 18.81 kB / 1.359 GB, free: 40.62 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 9.979e-06/0.9269, allocations: 0.6562 kB / 1.359 GB, free: 40.62 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.149e-05/0.9269, allocations: 35.28 kB / 1.359 GB, free: 40.57 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=2): time 1.021e-06/0.9269, allocations: 0.5312 kB / 1.359 GB, free: 40.57 MB / 0.8855 GB Notification: Performance of matching and sorting (n=2): time 0.0001299/0.9271, allocations: 46.08 kB / 1.359 GB, free: 40.52 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.654e-05/0.9271, allocations: 77.92 kB / 1.359 GB, free: 40.43 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.681e-05/0.9272, allocations: 113.8 kB / 1.359 GB, free: 40.31 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.951e-06/0.9272, allocations: 25.7 kB / 1.359 GB, free: 40.28 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 3.103e-05/0.9272, allocations: 112.6 kB / 1.359 GB, free: 40.16 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.839e-06/0.9272, allocations: 4.844 kB / 1.359 GB, free: 40.16 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.275e-06/0.9272, allocations: 0 / 1.359 GB, free: 40.16 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 3.719e-05/0.9273, allocations: 319.9 kB / 1.36 GB, free: 39.84 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.327e-05/0.9273, allocations: 8 kB / 1.36 GB, free: 39.83 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.562e-05/0.9273, allocations: 15.22 kB / 1.36 GB, free: 39.81 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.806e-05/0.9273, allocations: 8 kB / 1.36 GB, free: 39.8 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.9274, allocations: 4.531 kB / 1.36 GB, free: 39.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.598e-05/0.9274, allocations: 58.41 kB / 1.36 GB, free: 39.74 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.228e-06/0.9274, allocations: 8 kB / 1.36 GB, free: 39.73 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.9274, allocations: 1.344 kB / 1.36 GB, free: 39.73 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.014e-05/0.9275, allocations: 0 / 1.36 GB, free: 39.73 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.548e-05/0.9275, allocations: 4 kB / 1.36 GB, free: 39.73 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.9275, allocations: 4 kB / 1.36 GB, free: 39.73 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.524e-05/0.9276, allocations: 6.062 kB / 1.36 GB, free: 39.72 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.717e-06/0.9276, allocations: 1.344 kB / 1.36 GB, free: 39.72 MB / 0.8855 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 () * 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 3.656e-05/0.9276, allocations: 120 kB / 1.36 GB, free: 39.6 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.094e-05/0.9277, allocations: 6.312 kB / 1.36 GB, free: 39.6 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.999e-05/0.9277, allocations: 7.469 kB / 1.36 GB, free: 39.59 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.9277, allocations: 0 / 1.36 GB, free: 39.59 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.9277, allocations: 0 / 1.36 GB, free: 39.59 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.9277, allocations: 0 / 1.36 GB, free: 39.59 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002224/0.9279, allocations: 448.7 kB / 1.36 GB, free: 39.11 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.9279, allocations: 3.938 kB / 1.36 GB, free: 39.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.801e-05/0.928, allocations: 0.8125 kB / 1.36 GB, free: 39.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.928, allocations: 4 kB / 1.36 GB, free: 39.1 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.869e-06/0.928, allocations: 0.7188 kB / 1.36 GB, free: 39.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.928, allocations: 0 / 1.36 GB, free: 39.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.928, allocations: 6.469 kB / 1.36 GB, free: 39.09 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 5.244e-05/0.9281, allocations: 85.86 kB / 1.36 GB, free: 38.98 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 7.993e-05/0.9281, allocations: 467 kB / 1.361 GB, free: 38.5 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 2.274e-05/0.9282, allocations: 85.09 kB / 1.361 GB, free: 38.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.154e-05/0.9282, allocations: 3.906 kB / 1.361 GB, free: 38.39 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.728e-05/0.9282, allocations: 0.8438 kB / 1.361 GB, free: 38.39 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.437e-05/0.9282, allocations: 8.953 kB / 1.361 GB, free: 38.39 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.9282, allocations: 4 kB / 1.361 GB, free: 38.38 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.348e-05/0.9283, allocations: 100.1 kB / 1.361 GB, free: 38.29 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007011/0.929, allocations: 11.91 kB / 1.361 GB, free: 38.27 MB / 0.8855 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 () * 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 6.819e-05/0.9291, allocations: 96.47 kB / 1.361 GB, free: 38.17 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 5.377e-05/0.9291, allocations: 12.78 kB / 1.361 GB, free: 38.16 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.9291, allocations: 0 / 1.361 GB, free: 38.16 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 8.146e-06/0.9291, allocations: 12.59 kB / 1.361 GB, free: 38.15 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.599e-05/0.9292, allocations: 8.031 kB / 1.361 GB, free: 38.14 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001897/0.9294, allocations: 104.7 kB / 1.361 GB, free: 38.02 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.9295, allocations: 0.7081 MB / 1.362 GB, free: 37.29 MB / 0.8855 GB Notification: Performance of SimCode: time 2.41e-07/0.9295, allocations: 4.688 kB / 1.362 GB, free: 37.29 MB / 0.8855 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) 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