Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.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.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="Buildings_9_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="Buildings_9_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med",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.001182/0.001182, allocations: 100 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.001426/0.001427, 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.423/1.423, allocations: 223.2 MB / 239.9 MB, free: 5.383 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.597/2.597, allocations: 390.3 MB / 0.6653 GB, free: 3.059 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003801/0.0003805, allocations: 8 kB / 0.8146 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8676/0.8681, allocations: 142.3 MB / 0.9536 GB, free: 8.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.001798/0.8699, allocations: 1.096 MB / 0.9547 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002948/0.8729, allocations: 2.257 MB / 0.9569 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.337e-05/0.8729, allocations: 1.25 kB / 0.9569 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001576/0.8745, allocations: 0.5558 MB / 0.9574 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.444e-05/0.8746, allocations: 15.97 kB / 0.9574 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 4.028e-06/0.8746, allocations: 0 / 0.9574 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002185/0.8748, allocations: 136.8 kB / 0.9576 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.022e-05/0.8749, allocations: 33.06 kB / 0.9576 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.455e-05/0.875, allocations: 41.06 kB / 0.9576 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.8751, allocations: 79.42 kB / 0.9577 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.49e-05/0.8751, allocations: 7.094 kB / 0.9577 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009973/0.8761, allocations: 446.2 kB / 0.9581 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.782e-05/0.8762, allocations: 37.58 kB / 0.9582 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.575e-05/0.8763, allocations: 60.83 kB / 0.9582 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004128/0.8767, allocations: 270.3 kB / 0.9585 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.8767, allocations: 0 / 0.9585 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.104e-06/0.8767, allocations: 1.375 kB / 0.9585 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.8767, allocations: 0 / 0.9585 GB, free: 4.652 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0006824/0.8774, allocations: 0.5399 MB / 0.959 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.8774, allocations: 7.844 kB / 0.959 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.733e-05/0.8775, allocations: 106.9 kB / 0.9591 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.8777, allocations: 106.8 kB / 0.9592 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001765/0.8778, allocations: 295.3 kB / 0.9595 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.231e-05/0.8779, allocations: 159.9 kB / 0.9597 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.448e-05/0.8779, allocations: 157.3 kB / 0.9598 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.016e-05/0.878, allocations: 104.9 kB / 0.9599 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.878, allocations: 76.62 kB / 0.96 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.148e-05/0.878, allocations: 150.6 kB / 0.9601 GB, free: 3 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.124e-05/0.878, allocations: 150.6 kB / 0.9603 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.476e-05/0.8781, allocations: 159.7 kB / 0.9604 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002728/0.8783, allocations: 0.5304 MB / 0.9609 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.245e-05/0.8784, allocations: 170.4 kB / 0.9611 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.483e-05/0.8784, allocations: 76.59 kB / 0.9612 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.298e-05/0.8784, allocations: 109.8 kB / 0.9613 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 9.52e-07/0.8785, allocations: 0 / 0.9613 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 0.0001597/0.8786, allocations: 58.75 kB / 0.9613 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.29e-05/0.8787, allocations: 130.6 kB / 0.9615 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004194/0.8791, allocations: 427.9 kB / 0.9619 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.959e-06/0.8791, allocations: 30.55 kB / 0.9619 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.826e-05/0.8792, allocations: 134.8 kB / 0.962 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.896e-06/0.8792, allocations: 0 / 0.962 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.626e-06/0.8792, allocations: 4 kB / 0.962 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.121e-05/0.8793, allocations: 344 kB / 0.9624 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.8794, allocations: 98.91 kB / 0.9625 GB, free: 0.7656 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.8795, allocations: 162.7 kB / 0.9626 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001506/0.8797, allocations: 127.9 kB / 0.9627 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.8797, allocations: 0 / 0.9627 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004934/0.8802, allocations: 324.7 kB / 0.963 GB, free: 416 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.8802, allocations: 5.094 kB / 0.963 GB, free: 416 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.8802, allocations: 2.25 kB / 0.963 GB, free: 416 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.8803, allocations: 5.906 kB / 0.9631 GB, free: 412 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.746e-06/0.8803, allocations: 2.375 kB / 0.9631 GB, free: 412 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.8803, allocations: 1.875 kB / 0.9631 GB, free: 412 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001571/0.8804, allocations: 51.95 kB / 0.9631 GB, free: 368 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.8805, allocations: 4.172 kB / 0.9631 GB, free: 368 kB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (cab[1].material,cab[2].material,cab[3].material,cab[4].material,cab[5].material,cab[6].material,cab[7].material) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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 0.0001812/0.8807, allocations: 252.1 kB / 0.9633 GB, free: 136 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.058e-05/0.8807, allocations: 127.6 kB / 0.9635 GB, free: 8 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.281e-05/0.8808, allocations: 114.1 kB / 0.9636 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.88e-05/0.8809, allocations: 185.1 kB / 0.9638 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.685e-05/0.8809, allocations: 177.3 kB / 0.9639 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.668e-05/0.881, allocations: 189.3 kB / 0.9641 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003252/0.8813, allocations: 473.4 kB / 0.9646 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.504e-05/0.8814, allocations: 101.7 kB / 0.9647 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.039e-05/0.8814, allocations: 110 kB / 0.9648 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.663e-05/0.8815, allocations: 177.2 kB / 0.9649 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.922e-05/0.8816, allocations: 189.2 kB / 0.9651 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.044e-05/0.8816, allocations: 181.3 kB / 0.9653 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.5e-05/0.8817, allocations: 177.2 kB / 0.9655 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001622/0.8819, allocations: 333.2 kB / 0.9658 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.882, allocations: 201 kB / 0.966 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.8821, allocations: 181 kB / 0.9661 GB, free: 13.15 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.8822, allocations: 111 kB / 0.9662 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.951e-05/0.8823, allocations: 189.2 kB / 0.9664 GB, free: 12.85 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.224e-05/0.8824, allocations: 102 kB / 0.9665 GB, free: 12.74 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002891/0.8826, allocations: 269 kB / 0.9668 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8827, allocations: 0 / 0.9668 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006504/0.8833, allocations: 99.27 kB / 0.9669 GB, free: 12.56 MB / 0.7325 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 (0): * Single equations (assignments): 0 * 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.0008819/0.8842, allocations: 0.9717 MB / 0.9678 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002982/0.8845, allocations: 163.9 kB / 0.968 GB, free: 11.56 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.8845, allocations: 1.75 kB / 0.968 GB, free: 11.56 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.208e-06/0.8845, allocations: 4 kB / 0.968 GB, free: 11.56 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/0.8849, allocations: 0.5253 MB / 0.9685 GB, free: 11.03 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001708/0.8866, allocations: 1.745 MB / 0.9702 GB, free: 9.422 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004313/0.887, allocations: 0.7832 MB / 0.971 GB, free: 8.672 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.626e-05/0.8871, allocations: 2.344 kB / 0.971 GB, free: 8.672 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.926e-05/0.8872, allocations: 57.81 kB / 0.971 GB, free: 8.617 MB / 0.7325 GB Notification: Performance of SimCode: time 5.41e-07/0.8872, allocations: 0 / 0.971 GB, free: 8.617 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02029/0.9075, allocations: 5.919 MB / 0.9768 GB, free: 5.812 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000179/0.9077, allocations: 200.4 kB / 0.977 GB, free: 5.574 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.91/2.818, allocations: 0 / 0.977 GB, free: 5.574 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.fmu > Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat does not exist to compare? outputFormat=mat