Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.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.AC.ThreePhasesUnbalanced.Loads.Examples.Loads,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Loads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Loads",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.008863/0.008863, allocations: 98.52 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.001717/0.001717, allocations: 196.2 kB / 16.68 MB, free: 5.969 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.335/1.335, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.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.431/2.431, allocations: 437 MB / 0.7105 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 67.89 kB / 1.018 GB, free: 9.906 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7566/0.758, allocations: 151.6 MB / 1.166 GB, free: 3.773 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads): time 0.04322/0.8012, allocations: 37.26 MB / 1.203 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.02275/0.8241, allocations: 13.7 MB / 1.216 GB, free: 0.6484 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002871/0.827, allocations: 115.6 kB / 1.216 GB, free: 0.5352 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.005684/0.8327, allocations: 2.279 MB / 1.218 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.003661/0.8364, allocations: 1.459 MB / 1.22 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.008482/0.8449, allocations: 3.515 MB / 1.223 GB, free: 9.27 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.007184/0.8521, allocations: 6.414 MB / 1.229 GB, free: 2.84 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01221/0.8643, allocations: 9.888 MB / 1.239 GB, free: 8.828 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004333/0.8687, allocations: 2.762 MB / 1.242 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005124/0.8739, allocations: 3.198 MB / 1.245 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.001849/0.8757, allocations: 0.6172 MB / 1.245 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003889/0.8796, allocations: 1.26 MB / 1.247 GB, free: 0.9727 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.004432/0.8841, allocations: 2.484 MB / 1.249 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.005913/0.89, allocations: 2.553 MB / 1.252 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.01181/0.9019, allocations: 9.18 MB / 1.261 GB, free: 2.715 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 8.165e-06/0.9019, allocations: 0 / 1.261 GB, free: 2.715 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.513e-06/0.9019, allocations: 3.938 kB / 1.261 GB, free: 2.711 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0002922/0.9022, allocations: 4 kB / 1.261 GB, free: 2.707 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1156 * Number of variables: 1156 Notification: Performance of Generate backend data structure: time 0.01156/0.9138, allocations: 4.402 MB / 1.265 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.9138, allocations: 12.92 kB / 1.265 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001703/0.9156, allocations: 0.6365 MB / 1.266 GB, free: 13.57 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005365/0.9209, allocations: 1.056 MB / 1.267 GB, free: 12.51 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0042/0.9251, allocations: 2.234 MB / 1.269 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002262/0.9254, allocations: 329 kB / 1.269 GB, free: 9.906 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008479/0.9262, allocations: 424.3 kB / 1.269 GB, free: 9.492 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01214/0.9384, allocations: 7.412 MB / 1.277 GB, free: 1.844 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001123/0.9385, allocations: 11.94 kB / 1.277 GB, free: 1.832 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006159/0.9392, allocations: 176 kB / 1.277 GB, free: 1.66 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000298/0.9395, allocations: 290.9 kB / 1.277 GB, free: 1.375 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01119/0.9507, allocations: 6.018 MB / 1.283 GB, free: 11.34 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0376/0.9883, allocations: 32.51 MB / 1.315 GB, free: 7.992 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003531/0.9919, allocations: 2.138 MB / 1.317 GB, free: 5.816 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001651/0.9935, allocations: 1.254 MB / 1.318 GB, free: 4.555 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001744/0.9937, allocations: 98.08 kB / 1.318 GB, free: 4.441 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.9938, allocations: 47.5 kB / 1.318 GB, free: 4.387 MB / 1.045 GB Notification: Performance of pre-optimization done (n=98): time 3.056e-06/0.9938, allocations: 0 / 1.318 GB, free: 4.387 MB / 1.045 GB Notification: Performance of matching and sorting (n=101): time 0.009086/1.003, allocations: 5.448 MB / 1.324 GB, free: 14.91 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.591e-05/1.003, allocations: 141.5 kB / 1.324 GB, free: 14.74 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002074/1.005, allocations: 1.476 MB / 1.325 GB, free: 13.25 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0001214/1.005, allocations: 45.64 kB / 1.325 GB, free: 13.2 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.001096/1.006, allocations: 1.933 MB / 1.327 GB, free: 11.25 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003503/1.007, allocations: 392.8 kB / 1.327 GB, free: 10.86 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000721/1.007, allocations: 463.4 kB / 1.328 GB, free: 10.4 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 8.991e-05/1.007, allocations: 301.1 kB / 1.328 GB, free: 10.1 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001755/1.009, allocations: 1.153 MB / 1.329 GB, free: 8.938 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002435/1.012, allocations: 2.211 MB / 1.331 GB, free: 6.207 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004102/1.016, allocations: 3.431 MB / 1.335 GB, free: 2.301 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.078e-05/1.016, allocations: 12 kB / 1.335 GB, free: 2.289 MB / 1.061 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.005373/1.021, allocations: 3.383 MB / 1.338 GB, free: 14.89 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 4.081e-05/1.021, allocations: 16 kB / 1.338 GB, free: 14.88 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-05/1.021, allocations: 36 kB / 1.338 GB, free: 14.84 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.517e-05/1.021, allocations: 52.75 kB / 1.338 GB, free: 14.79 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002225/1.024, allocations: 0.6278 MB / 1.339 GB, free: 14.16 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.618e-05/1.024, allocations: 67.78 kB / 1.339 GB, free: 14.1 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002169/1.026, allocations: 327.1 kB / 1.339 GB, free: 13.78 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000214/1.026, allocations: 116 kB / 1.339 GB, free: 13.66 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003491/1.03, allocations: 2.432 MB / 1.342 GB, free: 11.22 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002175/1.032, allocations: 2.046 MB / 1.344 GB, free: 8.645 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003611/1.035, allocations: 3.072 MB / 1.347 GB, free: 5.082 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.535e-05/1.035, allocations: 8 kB / 1.347 GB, free: 5.074 MB / 1.076 GB Notification: Performance of matching and sorting (n=264) (initialization_lambda0): time 0.004608/1.04, allocations: 2.984 MB / 1.35 GB, free: 2.086 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/1.04, allocations: 20 kB / 1.35 GB, free: 2.066 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.203e-05/1.04, allocations: 32 kB / 1.35 GB, free: 2.035 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.095e-05/1.04, allocations: 48 kB / 1.35 GB, free: 1.988 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001844/1.042, allocations: 0.5739 MB / 1.35 GB, free: 1.414 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.511e-05/1.042, allocations: 75.66 kB / 1.35 GB, free: 1.34 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001914/1.044, allocations: 259.2 kB / 1.351 GB, free: 1.086 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001727/1.044, allocations: 116 kB / 1.351 GB, free: 0.9727 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 154 * 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 (264): * Single equations (assignments): 264 * 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 prepare postOptimizeDAE: time 0.0005194/1.045, allocations: 331.3 kB / 1.351 GB, free: 0.6406 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003809/1.045, allocations: 167 kB / 1.351 GB, free: 488 kB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003499/1.049, allocations: 2.254 MB / 1.353 GB, free: 14.21 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-05/1.049, allocations: 11.94 kB / 1.353 GB, free: 14.2 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/1.049, allocations: 4 kB / 1.353 GB, free: 14.19 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/1.049, allocations: 3.984 kB / 1.353 GB, free: 14.19 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01522/1.064, allocations: 11 MB / 1.364 GB, free: 2.941 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-05/1.064, allocations: 15.94 kB / 1.364 GB, free: 2.926 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001477/1.065, allocations: 383.3 kB / 1.365 GB, free: 2.551 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.219e-05/1.066, allocations: 16 kB / 1.365 GB, free: 2.535 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/1.066, allocations: 28 kB / 1.365 GB, free: 2.508 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.071e-05/1.066, allocations: 27.92 kB / 1.365 GB, free: 2.48 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.288e-05/1.066, allocations: 19.94 kB / 1.365 GB, free: 2.461 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003259/1.069, allocations: 2.776 MB / 1.367 GB, free: 15.52 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008519/1.07, allocations: 459.7 kB / 1.368 GB, free: 15.05 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003848/1.07, allocations: 35.98 kB / 1.368 GB, free: 15.02 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00137/1.072, allocations: 171.7 kB / 1.368 GB, free: 14.85 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/1.072, allocations: 100.2 kB / 1.368 GB, free: 14.75 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.053e-05/1.072, allocations: 39.94 kB / 1.368 GB, free: 14.71 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.001671/1.074, allocations: 1.002 MB / 1.369 GB, free: 13.71 MB / 1.107 GB Notification: Performance of sort global known variables: time 1.5e-07/1.074, allocations: 0 / 1.369 GB, free: 13.71 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.00418/1.078, allocations: 1.144 MB / 1.37 GB, free: 12.57 MB / 1.107 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 (104): * Single equations (assignments): 104 * 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.003659/1.081, allocations: 3.353 MB / 1.373 GB, free: 9.043 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.006464/1.088, allocations: 4.071 MB / 1.377 GB, free: 4.988 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/1.088, allocations: 0 / 1.377 GB, free: 4.988 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.001469/1.089, allocations: 1.055 MB / 1.378 GB, free: 3.938 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002778/1.092, allocations: 456.7 kB / 1.379 GB, free: 3.523 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03331/1.126, allocations: 21.93 MB / 1.4 GB, free: 12.13 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00425/1.13, allocations: 2.868 MB / 1.403 GB, free: 9.234 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.002961/1.133, allocations: 1.223 MB / 1.404 GB, free: 8.004 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001827/1.135, allocations: 1.276 MB / 1.406 GB, free: 6.727 MB / 1.139 GB Notification: Performance of SimCode: time 2.435e-06/1.135, allocations: 0 / 1.406 GB, free: 6.727 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07774/1.212, allocations: 47.76 MB / 1.452 GB, free: 7.328 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.11/11.32, allocations: 12.97 kB / 1.452 GB, free: 7.32 MB / 1.186 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Loads.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Loads.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches