Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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.CDL.Continuous.Validation.Atan2,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Atan2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Atan2",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.001146/0.001146, allocations: 100.2 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.001326/0.001326, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.439/2.439, allocations: 390.3 MB / 0.6653 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003585/0.0003587, allocations: 16 kB / 0.8146 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7287/0.7291, allocations: 142.3 MB / 0.9536 GB, free: 8.035 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2): time 0.0009056/0.73, allocations: 424.8 kB / 0.954 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009418/0.731, allocations: 0.821 MB / 0.9548 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.484e-05/0.731, allocations: 5.156 kB / 0.9548 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.436e-05/0.7311, allocations: 0 / 0.9548 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.141e-05/0.7312, allocations: 13.14 kB / 0.9548 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001461/0.7313, allocations: 10.52 kB / 0.9548 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.198e-05/0.7314, allocations: 23.53 kB / 0.9549 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.867e-05/0.7315, allocations: 8.828 kB / 0.9549 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.504e-05/0.7316, allocations: 17.83 kB / 0.9549 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.629e-05/0.7316, allocations: 20.25 kB / 0.9549 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.591e-05/0.7317, allocations: 5.531 kB / 0.9549 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.145e-05/0.7317, allocations: 2.156 kB / 0.9549 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.221e-05/0.7317, allocations: 4.844 kB / 0.9549 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.196e-05/0.7317, allocations: 28.45 kB / 0.9549 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.846e-05/0.7318, allocations: 25.5 kB / 0.955 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.7318, allocations: 0 / 0.955 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.333e-06/0.7318, allocations: 0 / 0.955 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.7318, allocations: 5.406 kB / 0.955 GB, free: 6.914 MB / 0.7169 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.0005151/0.7323, allocations: 371.8 kB / 0.9553 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.7324, allocations: 12.84 kB / 0.9553 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.247e-05/0.7324, allocations: 35.72 kB / 0.9554 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.082e-05/0.7325, allocations: 9.984 kB / 0.9554 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.7326, allocations: 165.9 kB / 0.9555 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.7326, allocations: 1.406 kB / 0.9555 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.7326, allocations: 1.312 kB / 0.9555 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002822/0.7329, allocations: 83.95 kB / 0.9556 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.7329, allocations: 0 / 0.9556 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.7329, allocations: 1.406 kB / 0.9556 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.7329, allocations: 0 / 0.9556 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003152/0.7333, allocations: 90.92 kB / 0.9557 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000369/0.7336, allocations: 271.2 kB / 0.956 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002193/0.7339, allocations: 65.84 kB / 0.956 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.7339, allocations: 1.531 kB / 0.956 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.7339, allocations: 38.56 kB / 0.9561 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.7339, allocations: 1.125 kB / 0.9561 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005719/0.7345, allocations: 170.7 kB / 0.9562 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.686e-05/0.7346, allocations: 52.19 kB / 0.9563 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.879e-05/0.7346, allocations: 110.8 kB / 0.9564 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.023e-05/0.7346, allocations: 26.58 kB / 0.9564 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.481e-05/0.7347, allocations: 85.55 kB / 0.9565 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.7347, allocations: 14.19 kB / 0.9565 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.47e-06/0.7347, allocations: 4 kB / 0.9565 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.49e-05/0.7348, allocations: 316.5 kB / 0.9568 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.735, allocations: 42.69 kB / 0.9569 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.7351, allocations: 42.52 kB / 0.9569 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.7353, allocations: 42.78 kB / 0.9569 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.7353, allocations: 1.156 kB / 0.9569 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003347/0.7356, allocations: 120.5 kB / 0.9571 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.7356, allocations: 4.781 kB / 0.9571 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.7357, allocations: 1.25 kB / 0.9571 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.7357, allocations: 7.938 kB / 0.9571 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.7358, allocations: 23.89 kB / 0.9571 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.7358, allocations: 0 / 0.9571 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.557e-05/0.7359, allocations: 15.48 kB / 0.9571 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.7359, allocations: 1.062 kB / 0.9571 GB, free: 4.953 MB / 0.7169 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 () * Number of clocked 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 6.55e-05/0.736, allocations: 115.9 kB / 0.9572 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.422e-05/0.736, allocations: 10.16 kB / 0.9572 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003834/0.7364, allocations: 131.8 kB / 0.9574 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.7364, allocations: 0 / 0.9574 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.7365, allocations: 12.84 kB / 0.9574 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.7365, allocations: 0 / 0.9574 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001632/0.7366, allocations: 165.7 kB / 0.9575 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.7366, allocations: 0 / 0.9575 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.7368, allocations: 19.64 kB / 0.9575 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.7368, allocations: 0 / 0.9575 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.397e-06/0.7368, allocations: 5.281 kB / 0.9575 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.7368, allocations: 320 / 0.9575 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.7368, allocations: 5.234 kB / 0.9576 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003841/0.7372, allocations: 211.6 kB / 0.9578 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.73e-05/0.7372, allocations: 82.45 kB / 0.9578 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.7373, allocations: 4 kB / 0.9578 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.7374, allocations: 24.2 kB / 0.9579 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.175e-05/0.7374, allocations: 5.234 kB / 0.9579 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.7375, allocations: 1.25 kB / 0.9579 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.857e-05/0.7375, allocations: 96.61 kB / 0.958 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7375, allocations: 1.344 kB / 0.958 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002115/0.7377, allocations: 5.719 kB / 0.958 GB, free: 4.145 MB / 0.7169 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 () * Number of clocked 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 0.0005369/0.7383, allocations: 0.7475 MB / 0.9587 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003358/0.7386, allocations: 93.77 kB / 0.9588 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.7386, allocations: 0 / 0.9588 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001612/0.7388, allocations: 42.75 kB / 0.9588 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002253/0.739, allocations: 13.83 kB / 0.9588 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004106/0.7394, allocations: 162.2 kB / 0.959 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00013/0.7396, allocations: 0.6857 MB / 0.9597 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.927e-05/0.7396, allocations: 1.562 kB / 0.9597 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.995e-05/0.7397, allocations: 16.81 kB / 0.9597 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.7397, allocations: 0 / 0.9597 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01124/0.7509, allocations: 1.276 MB / 0.9609 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001392/0.7511, allocations: 187.7 kB / 0.9611 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.711/2.462, allocations: 1 kB / 0.9611 GB, free: 1.664 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Atan2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Atan2.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2_res.mat does not exist to compare? outputFormat=mat