Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.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.CDL.Continuous.Validation.Atan2,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Atan2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Atan2",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.773/1.773, allocations: 390.4 MB / 397.7 MB, free: 10.69 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.001007/0.001008, allocations: 179.9 kB / 490.8 MB, free: 11.27 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.108/1.108, allocations: 221.4 MB / 0.7863 GB, free: 13.63 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.0008469/0.000847, allocations: 95.41 kB / 0.9264 GB, free: 4.582 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2301/0.231, allocations: 149.2 MB / 1.072 GB, free: 15.53 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5256/0.7566, allocations: 143 MB / 1.212 GB, free: 156 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1366/0.8932, allocations: 148.9 MB / 1.357 GB, free: 42.79 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001586/0.8934, allocations: 71.95 kB / 1.357 GB, free: 42.72 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.002331/0.8958, allocations: 0.9698 MB / 1.358 GB, free: 41.75 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.005e-05/0.8958, allocations: 8 kB / 1.358 GB, free: 41.74 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.828e-05/0.8959, allocations: 7.906 kB / 1.358 GB, free: 41.73 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.047e-05/0.8959, allocations: 166.9 kB / 1.358 GB, free: 41.53 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.896, allocations: 4.906 kB / 1.358 GB, free: 41.52 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.778e-06/0.896, allocations: 0 / 1.358 GB, free: 41.52 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.996e-05/0.896, allocations: 22.06 kB / 1.358 GB, free: 41.5 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.42e-05/0.8961, allocations: 42.91 kB / 1.358 GB, free: 41.46 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.091e-06/0.8961, allocations: 0 / 1.358 GB, free: 41.46 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.8961, allocations: 0.5 kB / 1.358 GB, free: 41.46 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.8962, allocations: 0 / 1.358 GB, free: 41.46 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003663/0.8965, allocations: 287.4 kB / 1.359 GB, free: 41.14 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 5.289e-05/0.8966, allocations: 31.39 kB / 1.359 GB, free: 41.11 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.628e-05/0.8966, allocations: 17.61 kB / 1.359 GB, free: 41.09 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.8966, allocations: 12.06 kB / 1.359 GB, free: 41.07 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.324e-05/0.8967, allocations: 32.44 kB / 1.359 GB, free: 41.04 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=3): time 9.91e-07/0.8967, allocations: 0 / 1.359 GB, free: 41.04 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3): time 0.0001314/0.8968, allocations: 49.61 kB / 1.359 GB, free: 40.98 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.197e-05/0.8968, allocations: 52.72 kB / 1.359 GB, free: 40.92 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.337e-05/0.8969, allocations: 102.8 kB / 1.359 GB, free: 40.81 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 6.863e-06/0.8969, allocations: 25.7 kB / 1.359 GB, free: 40.78 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 1.465e-05/0.8969, allocations: 84.77 kB / 1.359 GB, free: 40.7 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.385e-05/0.8969, allocations: 20.25 kB / 1.359 GB, free: 40.68 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-06/0.8969, allocations: 0 / 1.359 GB, free: 40.68 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 3.438e-05/0.897, allocations: 315.5 kB / 1.359 GB, free: 40.36 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.089e-05/0.897, allocations: 13.03 kB / 1.359 GB, free: 40.35 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.757e-05/0.897, allocations: 8.047 kB / 1.359 GB, free: 40.34 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.07e-05/0.8971, allocations: 12.67 kB / 1.359 GB, free: 40.33 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.8971, allocations: 3 kB / 1.359 GB, free: 40.33 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.098e-05/0.8971, allocations: 46.59 kB / 1.359 GB, free: 40.28 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.704e-06/0.8971, allocations: 8 kB / 1.359 GB, free: 40.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.8972, allocations: 6.906 kB / 1.359 GB, free: 40.27 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.424e-06/0.8972, allocations: 0 / 1.359 GB, free: 40.27 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.8973, allocations: 22.86 kB / 1.359 GB, free: 40.25 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.8973, allocations: 0 / 1.359 GB, free: 40.25 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.823e-05/0.8974, allocations: 22.41 kB / 1.359 GB, free: 40.23 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.8974, allocations: 4.906 kB / 1.359 GB, free: 40.22 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.478e-05/0.8975, allocations: 104.6 kB / 1.36 GB, free: 40.12 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.509e-05/0.8975, allocations: 7.844 kB / 1.36 GB, free: 40.11 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.66e-05/0.8976, allocations: 62.44 kB / 1.36 GB, free: 40.04 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.8976, allocations: 0.5938 kB / 1.36 GB, free: 40.04 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.8976, allocations: 0 / 1.36 GB, free: 40.04 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.8976, allocations: 0.5312 kB / 1.36 GB, free: 40.04 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.025e-05/0.8977, allocations: 150.9 kB / 1.36 GB, free: 39.86 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.8977, allocations: 0 / 1.36 GB, free: 39.86 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/0.8978, allocations: 22.39 kB / 1.36 GB, free: 39.84 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.8979, allocations: 0.875 kB / 1.36 GB, free: 39.84 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.8979, allocations: 0 / 1.36 GB, free: 39.84 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.8979, allocations: 4 kB / 1.36 GB, free: 39.84 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.8979, allocations: 6.438 kB / 1.36 GB, free: 39.83 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.394e-05/0.898, allocations: 148.8 kB / 1.36 GB, free: 39.67 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000104/0.8981, allocations: 0.5166 MB / 1.36 GB, free: 39.14 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 1.547e-05/0.8981, allocations: 82.27 kB / 1.361 GB, free: 39.04 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.426e-05/0.8981, allocations: 7.891 kB / 1.361 GB, free: 39.03 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.8982, allocations: 18.39 kB / 1.361 GB, free: 39.02 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.747e-05/0.8983, allocations: 4.5 kB / 1.361 GB, free: 39.01 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.8983, allocations: 0.7188 kB / 1.361 GB, free: 39.01 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.979e-05/0.8983, allocations: 88.75 kB / 1.361 GB, free: 38.93 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007299/0.8991, allocations: 8.562 kB / 1.361 GB, free: 38.92 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 8.147e-05/0.8991, allocations: 96.12 kB / 1.361 GB, free: 38.82 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 7.822e-05/0.8992, allocations: 32.09 kB / 1.361 GB, free: 38.79 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.8992, allocations: 0 / 1.361 GB, free: 38.79 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 2.773e-05/0.8993, allocations: 12 kB / 1.361 GB, free: 38.78 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001626/0.8994, allocations: 8.672 kB / 1.361 GB, free: 38.77 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001797/0.8996, allocations: 72.03 kB / 1.361 GB, free: 38.68 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.8997, allocations: 0.6962 MB / 1.362 GB, free: 37.96 MB / 0.8855 GB Notification: Performance of SimCode: time 2.6e-07/0.8998, allocations: 0 / 1.362 GB, free: 37.96 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Atan2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Atan2.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2_res.mat does not exist to compare? outputFormat=mat