Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 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.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="Buildings_latest_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.001775/0.001775, allocations: 98.53 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.002065/0.002064, 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.657/2.657, allocations: 223.2 MB / 239.9 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 5.045/5.045, allocations: 409.2 MB / 0.6838 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.000782/0.0007821, allocations: 8 kB / 0.8375 GB, free: 6.598 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.672/1.672, allocations: 146.8 MB / 0.9809 GB, free: 6.324 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.003105/1.676, allocations: 1.103 MB / 0.9819 GB, free: 5.215 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005983/1.682, allocations: 2.266 MB / 0.9841 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.515e-05/1.682, allocations: 0 / 0.9841 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.003428/1.685, allocations: 0.5472 MB / 0.9847 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.384e-05/1.685, allocations: 15.97 kB / 0.9847 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 5.561e-06/1.685, allocations: 0 / 0.9847 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004038/1.686, allocations: 131.7 kB / 0.9848 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/1.686, allocations: 32.41 kB / 0.9849 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/1.686, allocations: 55.78 kB / 0.9849 GB, free: 2.16 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001979/1.686, allocations: 67.61 kB / 0.985 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.89e-05/1.686, allocations: 0 / 0.985 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001656/1.688, allocations: 455.6 kB / 0.9854 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.695e-05/1.688, allocations: 31.84 kB / 0.9854 GB, free: 1.617 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001222/1.688, allocations: 69.58 kB / 0.9855 GB, free: 1.543 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0008189/1.689, allocations: 269.7 kB / 0.9858 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/1.689, allocations: 0 / 0.9858 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.087e-06/1.689, allocations: 0 / 0.9858 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.94e-05/1.689, allocations: 0 / 0.9858 GB, free: 1.281 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.001486/1.691, allocations: 0.5409 MB / 0.9863 GB, free: 0.6914 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 8.47e-05/1.691, allocations: 12.03 kB / 0.9863 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001218/1.691, allocations: 105.8 kB / 0.9864 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003763/1.691, allocations: 99 kB / 0.9865 GB, free: 480 kB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005521/1.692, allocations: 297.1 kB / 0.9868 GB, free: 140 kB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001503/1.692, allocations: 154.6 kB / 0.9869 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/1.692, allocations: 162.4 kB / 0.9871 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001167/1.692, allocations: 108.9 kB / 0.9872 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.528e-05/1.692, allocations: 75.28 kB / 0.9873 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001011/1.692, allocations: 150.6 kB / 0.9874 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001304/1.693, allocations: 154.6 kB / 0.9875 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001528/1.693, allocations: 154.6 kB / 0.9877 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/1.694, allocations: 0.5289 MB / 0.9882 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000273/1.694, allocations: 173.1 kB / 0.9884 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 5.965e-05/1.694, allocations: 75.28 kB / 0.9884 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001633/1.694, allocations: 113.8 kB / 0.9886 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=0): time 1.924e-06/1.694, allocations: 0 / 0.9886 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of matching and sorting (n=0): time 0.0003545/1.695, allocations: 57.28 kB / 0.9886 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/1.695, allocations: 130.6 kB / 0.9887 GB, free: 14.03 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008527/1.696, allocations: 421.3 kB / 0.9891 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.948e-05/1.696, allocations: 25.7 kB / 0.9892 GB, free: 13.58 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/1.696, allocations: 140.5 kB / 0.9893 GB, free: 13.44 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 6.853e-06/1.696, allocations: 0 / 0.9893 GB, free: 13.44 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.861e-06/1.696, allocations: 7.938 kB / 0.9893 GB, free: 13.43 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000269/1.696, allocations: 338.8 kB / 0.9896 GB, free: 13.09 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002378/1.697, allocations: 96.5 kB / 0.9897 GB, free: 13 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003224/1.697, allocations: 169.3 kB / 0.9899 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003047/1.697, allocations: 123.8 kB / 0.99 GB, free: 12.69 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/1.697, allocations: 4 kB / 0.99 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009799/1.698, allocations: 324.9 kB / 0.9903 GB, free: 12.36 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.819e-05/1.698, allocations: 11.94 kB / 0.9903 GB, free: 12.35 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/1.698, allocations: 0 / 0.9903 GB, free: 12.35 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.442e-05/1.698, allocations: 4 kB / 0.9903 GB, free: 12.34 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.316e-06/1.698, allocations: 7.938 kB / 0.9903 GB, free: 12.34 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.53e-05/1.698, allocations: 4 kB / 0.9903 GB, free: 12.33 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00033/1.699, allocations: 43.38 kB / 0.9904 GB, free: 12.29 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.242e-05/1.699, allocations: 4 kB / 0.9904 GB, free: 12.29 MB / 0.7481 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.0004698/1.699, allocations: 249.2 kB / 0.9906 GB, free: 12.03 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000278/1.7, allocations: 120.6 kB / 0.9907 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001305/1.7, allocations: 119 kB / 0.9909 GB, free: 11.78 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000127/1.7, allocations: 180.2 kB / 0.991 GB, free: 11.6 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001311/1.7, allocations: 184.2 kB / 0.9912 GB, free: 11.41 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001094/1.7, allocations: 188.1 kB / 0.9914 GB, free: 11.22 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005827/1.701, allocations: 473.2 kB / 0.9918 GB, free: 10.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.744e-05/1.701, allocations: 101 kB / 0.9919 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.992e-05/1.701, allocations: 108.9 kB / 0.992 GB, free: 10.48 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001442/1.701, allocations: 180.3 kB / 0.9922 GB, free: 10.3 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001731/1.701, allocations: 180.2 kB / 0.9924 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002173/1.701, allocations: 180.3 kB / 0.9925 GB, free: 9.93 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0002378/1.702, allocations: 184.2 kB / 0.9927 GB, free: 9.742 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003667/1.702, allocations: 323.5 kB / 0.993 GB, free: 9.402 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002873/1.702, allocations: 205.7 kB / 0.9932 GB, free: 9.176 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002307/1.703, allocations: 192.2 kB / 0.9934 GB, free: 8.98 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002747/1.703, allocations: 104.9 kB / 0.9935 GB, free: 8.871 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/1.703, allocations: 180.3 kB / 0.9937 GB, free: 8.688 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.939e-05/1.703, allocations: 101 kB / 0.9938 GB, free: 8.582 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0005516/1.704, allocations: 275.1 kB / 0.994 GB, free: 8.316 MB / 0.7481 GB Notification: Performance of sort global known variables: time 7.92e-07/1.704, allocations: 0 / 0.994 GB, free: 8.316 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0009607/1.705, allocations: 95.89 kB / 0.9941 GB, free: 8.223 MB / 0.7481 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.001746/1.706, allocations: 0.9717 MB / 0.9951 GB, free: 7.227 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004793/1.707, allocations: 163.9 kB / 0.9952 GB, free: 7.066 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 6.483e-06/1.707, allocations: 0 / 0.9952 GB, free: 7.066 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 7.374e-06/1.707, allocations: 448 / 0.9952 GB, free: 7.066 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007001/1.708, allocations: 0.5316 MB / 0.9958 GB, free: 6.531 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003804/1.712, allocations: 1.757 MB / 0.9975 GB, free: 4.699 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008558/1.712, allocations: 0.7824 MB / 0.9982 GB, free: 3.891 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.182e-05/1.712, allocations: 7.984 kB / 0.9982 GB, free: 3.883 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/1.713, allocations: 51.42 kB / 0.9983 GB, free: 3.832 MB / 0.7481 GB Notification: Performance of SimCode: time 1.372e-06/1.713, allocations: 0 / 0.9983 GB, free: 3.832 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06307/1.776, allocations: 5.919 MB / 1.004 GB, free: 14.1 MB / 0.7638 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005535/1.776, allocations: 207.8 kB / 1.004 GB, free: 13.86 MB / 0.7638 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.923/5.7, allocations: 0 / 1.004 GB, free: 13.86 MB / 0.7638 GB (rm -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.fmu > Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat does not exist to compare? outputFormat=mat