Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="Buildings_10_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.007706/0.007706, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.002118/0.002118, allocations: 194.3 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.225/1.225, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.288/2.288, allocations: 437.1 MB / 0.7106 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 59.91 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2342, allocations: 151.6 MB / 1.166 GB, free: 7.316 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002119/0.2364, allocations: 1.421 MB / 1.168 GB, free: 5.879 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002858/0.2393, allocations: 2.67 MB / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.346e-05/0.2393, allocations: 0 / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001221/0.2405, allocations: 0.587 MB / 1.171 GB, free: 2.609 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.011e-05/0.2406, allocations: 15.91 kB / 1.171 GB, free: 2.594 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 3.656e-06/0.2406, allocations: 0 / 1.171 GB, free: 2.594 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002197/0.2408, allocations: 162.9 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 5.92e-05/0.2409, allocations: 32.41 kB / 1.171 GB, free: 2.398 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.328e-05/0.2409, allocations: 63.66 kB / 1.171 GB, free: 2.336 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.2411, allocations: 75.59 kB / 1.171 GB, free: 2.262 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.031e-05/0.2411, allocations: 0 / 1.171 GB, free: 2.262 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000898/0.242, allocations: 479.2 kB / 1.172 GB, free: 1.793 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.244e-05/0.242, allocations: 31.84 kB / 1.172 GB, free: 1.762 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 9.281e-05/0.2421, allocations: 95.36 kB / 1.172 GB, free: 1.668 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0005791/0.2427, allocations: 442 kB / 1.172 GB, free: 1.234 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.2427, allocations: 0 / 1.172 GB, free: 1.234 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2427, allocations: 7.938 kB / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.2427, allocations: 0 / 1.172 GB, free: 1.227 MB / 0.92 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.0006618/0.2434, allocations: 0.5564 MB / 1.173 GB, free: 0.6172 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.027e-05/0.2434, allocations: 12.03 kB / 1.173 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.48e-05/0.2435, allocations: 110 kB / 1.173 GB, free: 500 kB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/0.2437, allocations: 104 kB / 1.173 GB, free: 396 kB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002131/0.2439, allocations: 302.4 kB / 1.173 GB, free: 56 kB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.549e-05/0.244, allocations: 166.8 kB / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.647e-05/0.244, allocations: 150.9 kB / 1.173 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.999e-05/0.2441, allocations: 101.5 kB / 1.174 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.14e-05/0.2441, allocations: 87.22 kB / 1.174 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.471e-05/0.2442, allocations: 150.6 kB / 1.174 GB, free: 15.4 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.346e-05/0.2442, allocations: 154.6 kB / 1.174 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.259e-05/0.2443, allocations: 150.6 kB / 1.174 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003589/0.2447, allocations: 0.5328 MB / 1.175 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.818e-05/0.2448, allocations: 173.1 kB / 1.175 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.603e-05/0.2448, allocations: 84.14 kB / 1.175 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.846e-05/0.2448, allocations: 75.28 kB / 1.175 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.436e-05/0.2449, allocations: 105.8 kB / 1.175 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=0): time 7.82e-07/0.2449, allocations: 0 / 1.175 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of matching and sorting (n=0): time 0.0001593/0.245, allocations: 65.38 kB / 1.175 GB, free: 14 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.651e-05/0.2451, allocations: 126.7 kB / 1.175 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000399/0.2455, allocations: 437.3 kB / 1.176 GB, free: 13.42 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.2455, allocations: 29.7 kB / 1.176 GB, free: 13.39 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.345e-05/0.2456, allocations: 136.6 kB / 1.176 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.783e-06/0.2456, allocations: 0 / 1.176 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.456e-05/0.2457, allocations: 89.66 kB / 1.176 GB, free: 13.16 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.2459, allocations: 338.8 kB / 1.176 GB, free: 12.82 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.246, allocations: 100.5 kB / 1.176 GB, free: 12.72 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.2461, allocations: 165.3 kB / 1.176 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002913/0.2464, allocations: 305.6 kB / 1.177 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2464, allocations: 0 / 1.177 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004519/0.2469, allocations: 325.1 kB / 1.177 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.2469, allocations: 13.81 kB / 1.177 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.2469, allocations: 224 / 1.177 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.2469, allocations: 11.94 kB / 1.177 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.2469, allocations: 0 / 1.177 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.247, allocations: 4 kB / 1.177 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000121/0.2471, allocations: 47.5 kB / 1.177 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-06/0.2471, allocations: 4 kB / 1.177 GB, free: 11.82 MB / 0.9356 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001757/0.2473, allocations: 241.1 kB / 1.177 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.799e-05/0.2474, allocations: 132.7 kB / 1.177 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.499e-05/0.2474, allocations: 123 kB / 1.178 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-05/0.2475, allocations: 184.2 kB / 1.178 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-05/0.2476, allocations: 180.2 kB / 1.178 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.316e-05/0.2476, allocations: 176.3 kB / 1.178 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002912/0.2479, allocations: 481.1 kB / 1.179 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.735e-05/0.248, allocations: 109 kB / 1.179 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.187e-05/0.248, allocations: 105 kB / 1.179 GB, free: 10 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.749e-05/0.2481, allocations: 188.2 kB / 1.179 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.314e-05/0.2482, allocations: 176.3 kB / 1.179 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.856e-05/0.2482, allocations: 188.4 kB / 1.179 GB, free: 9.441 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.273e-05/0.2483, allocations: 176.3 kB / 1.179 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001454/0.2484, allocations: 331.6 kB / 1.18 GB, free: 8.914 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.2486, allocations: 202 kB / 1.18 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.172e-05/0.2487, allocations: 184.1 kB / 1.18 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.2488, allocations: 109 kB / 1.18 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.933e-05/0.2489, allocations: 184.2 kB / 1.18 GB, free: 8.203 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.985e-05/0.2489, allocations: 101 kB / 1.18 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.000246/0.2491, allocations: 279.1 kB / 1.181 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2492, allocations: 4 kB / 1.181 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002998/0.2495, allocations: 79.94 kB / 1.181 GB, free: 7.75 MB / 0.9356 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005875/0.2501, allocations: 0.9722 MB / 1.182 GB, free: 6.75 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001966/0.2503, allocations: 159.9 kB / 1.182 GB, free: 6.594 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.2503, allocations: 0 / 1.182 GB, free: 6.594 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.162e-06/0.2503, allocations: 0 / 1.182 GB, free: 6.594 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.2506, allocations: 461.6 kB / 1.182 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002609/0.2533, allocations: 2.956 MB / 1.185 GB, free: 3.062 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000343/0.2536, allocations: 0.7743 MB / 1.186 GB, free: 2.262 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 1.176e-05/0.2536, allocations: 7.984 kB / 1.186 GB, free: 2.254 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.389e-05/0.2537, allocations: 51.42 kB / 1.186 GB, free: 2.203 MB / 0.9356 GB Notification: Performance of SimCode: time 2.41e-07/0.2537, allocations: 0 / 1.186 GB, free: 2.203 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.9/3.154, allocations: 6.449 MB / 1.192 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/15.37, allocations: 14.89 kB / 1.192 GB, free: 11.89 MB / 0.9512 GB (rm -f Buildings_10_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_10_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_10_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.fmu > Buildings_10_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches