Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.AC.ThreePhasesUnbalanced.Loads.Examples.Loads,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Loads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads,fileNamePrefix="Buildings_latest_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.004919/0.004919, allocations: 95.97 kB / 15.73 MB, free: 6.051 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.001265/0.001265, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.877/2.877, allocations: 482.4 MB / 0.7548 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002078/0.002078, allocations: 59.89 kB / 1.083 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.3016, allocations: 162.2 MB / 1.241 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads): time 0.579/0.8807, allocations: 37.26 MB / 1.278 GB, free: 11.32 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.02623/0.907, allocations: 13.71 MB / 1.291 GB, free: 2.066 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003809/0.9109, allocations: 114.1 kB / 1.291 GB, free: 2.043 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.006449/0.9173, allocations: 2.283 MB / 1.294 GB, free: 0.668 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.004405/0.9218, allocations: 1.433 MB / 1.295 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.009684/0.9315, allocations: 3.512 MB / 1.298 GB, free: 13.87 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.008605/0.9401, allocations: 6.393 MB / 1.305 GB, free: 11.09 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01416/0.9543, allocations: 9.883 MB / 1.314 GB, free: 7.215 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005038/0.9594, allocations: 2.735 MB / 1.317 GB, free: 5.949 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00617/0.9656, allocations: 3.198 MB / 1.32 GB, free: 4.562 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.002478/0.9681, allocations: 0.6206 MB / 1.321 GB, free: 4.562 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004583/0.9727, allocations: 1.258 MB / 1.322 GB, free: 4.32 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.004796/0.9775, allocations: 2.478 MB / 1.324 GB, free: 3.316 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.005836/0.9833, allocations: 2.547 MB / 1.327 GB, free: 1.645 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.01217/0.9955, allocations: 9.185 MB / 1.336 GB, free: 13.46 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.9956, allocations: 0 / 1.336 GB, free: 13.46 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.703e-06/0.9956, allocations: 0 / 1.336 GB, free: 13.46 MB / 1.045 GB Notification: Performance of Transformations before backend: time 0.0002313/0.9958, allocations: 1.344 kB / 1.336 GB, free: 13.46 MB / 1.045 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.01276/1.009, allocations: 4.408 MB / 1.34 GB, free: 10.47 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/1.009, allocations: 9.906 kB / 1.34 GB, free: 10.47 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001911/1.011, allocations: 0.6385 MB / 1.341 GB, free: 10.02 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005812/1.016, allocations: 1.056 MB / 1.342 GB, free: 9.477 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0056/1.022, allocations: 2.239 MB / 1.344 GB, free: 8.051 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003279/1.022, allocations: 325.1 kB / 1.344 GB, free: 7.902 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001445/1.024, allocations: 422.8 kB / 1.345 GB, free: 7.766 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01811/1.042, allocations: 7.417 MB / 1.352 GB, free: 3.289 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001672/1.042, allocations: 9.812 kB / 1.352 GB, free: 3.285 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00132/1.043, allocations: 181.7 kB / 1.352 GB, free: 3.148 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003536/1.044, allocations: 288.9 kB / 1.352 GB, free: 3.082 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01272/1.057, allocations: 6.02 MB / 1.358 GB, free: 16 kB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04219/1.099, allocations: 32.51 MB / 1.39 GB, free: 13.46 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003946/1.103, allocations: 2.142 MB / 1.392 GB, free: 11.29 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001887/1.105, allocations: 1.24 MB / 1.393 GB, free: 10.04 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001918/1.105, allocations: 114 kB / 1.393 GB, free: 9.91 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.758e-05/1.105, allocations: 39.56 kB / 1.393 GB, free: 9.859 MB / 1.092 GB Notification: Performance of pre-optimization done (n=98): time 2.775e-06/1.105, allocations: 0 / 1.393 GB, free: 9.859 MB / 1.092 GB Notification: Performance of matching and sorting (n=101): time 0.009647/1.115, allocations: 5.444 MB / 1.399 GB, free: 4.387 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.848e-05/1.115, allocations: 137.5 kB / 1.399 GB, free: 4.223 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002194/1.117, allocations: 1.48 MB / 1.4 GB, free: 2.73 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 0.0002116/1.117, allocations: 45.7 kB / 1.4 GB, free: 2.68 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.001431/1.119, allocations: 1.925 MB / 1.402 GB, free: 0.7344 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005025/1.119, allocations: 400.7 kB / 1.403 GB, free: 348 kB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008438/1.12, allocations: 463.4 kB / 1.403 GB, free: 15.88 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001258/1.12, allocations: 301.1 kB / 1.403 GB, free: 15.58 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002061/1.122, allocations: 1.149 MB / 1.404 GB, free: 14.42 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002962/1.125, allocations: 2.215 MB / 1.407 GB, free: 11.68 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00499/1.13, allocations: 3.438 MB / 1.41 GB, free: 7.773 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.135e-05/1.13, allocations: 8 kB / 1.41 GB, free: 7.766 MB / 1.107 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006232/1.136, allocations: 3.379 MB / 1.413 GB, free: 4.379 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 3.869e-05/1.136, allocations: 20 kB / 1.413 GB, free: 4.359 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.296e-05/1.137, allocations: 36.78 kB / 1.413 GB, free: 4.324 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.93e-05/1.137, allocations: 51.94 kB / 1.413 GB, free: 4.273 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002403/1.139, allocations: 0.6317 MB / 1.414 GB, free: 3.641 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.774e-05/1.139, allocations: 71.72 kB / 1.414 GB, free: 3.57 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002187/1.141, allocations: 327.1 kB / 1.414 GB, free: 3.25 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002084/1.142, allocations: 116 kB / 1.415 GB, free: 3.137 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00409/1.146, allocations: 2.432 MB / 1.417 GB, free: 0.6953 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00253/1.148, allocations: 2.039 MB / 1.419 GB, free: 14.12 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004119/1.152, allocations: 3.068 MB / 1.422 GB, free: 10.56 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.688e-05/1.152, allocations: 12 kB / 1.422 GB, free: 10.55 MB / 1.123 GB Notification: Performance of matching and sorting (n=264) (initialization_lambda0): time 0.005288/1.158, allocations: 2.981 MB / 1.425 GB, free: 7.559 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/1.158, allocations: 20 kB / 1.425 GB, free: 7.539 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.305e-05/1.158, allocations: 36 kB / 1.425 GB, free: 7.504 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.59e-05/1.158, allocations: 48 kB / 1.425 GB, free: 7.457 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002083/1.16, allocations: 0.57 MB / 1.425 GB, free: 6.887 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.005e-05/1.16, allocations: 75.66 kB / 1.426 GB, free: 6.812 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002207/1.162, allocations: 267.2 kB / 1.426 GB, free: 6.551 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002219/1.162, allocations: 112 kB / 1.426 GB, free: 6.441 MB / 1.123 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.0006232/1.163, allocations: 331.9 kB / 1.426 GB, free: 6.109 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004387/1.163, allocations: 167 kB / 1.426 GB, free: 5.945 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003989/1.167, allocations: 2.258 MB / 1.429 GB, free: 3.672 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.698e-05/1.167, allocations: 15.94 kB / 1.429 GB, free: 3.656 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/1.168, allocations: 0 / 1.429 GB, free: 3.656 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.444e-05/1.168, allocations: 7.984 kB / 1.429 GB, free: 3.648 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0184/1.186, allocations: 11 MB / 1.439 GB, free: 8.402 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.663e-05/1.186, allocations: 8 kB / 1.439 GB, free: 8.395 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001624/1.188, allocations: 391.3 kB / 1.44 GB, free: 8.012 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.343e-05/1.188, allocations: 16 kB / 1.44 GB, free: 7.996 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001321/1.188, allocations: 32 kB / 1.44 GB, free: 7.965 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.322e-05/1.188, allocations: 19.94 kB / 1.44 GB, free: 7.945 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.447e-05/1.188, allocations: 15.94 kB / 1.44 GB, free: 7.93 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003926/1.192, allocations: 2.772 MB / 1.443 GB, free: 4.996 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009712/1.193, allocations: 455.7 kB / 1.443 GB, free: 4.531 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000372/1.193, allocations: 43.86 kB / 1.443 GB, free: 4.488 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001419/1.195, allocations: 171.7 kB / 1.443 GB, free: 4.32 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002459/1.195, allocations: 96.23 kB / 1.443 GB, free: 4.223 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/1.195, allocations: 47.92 kB / 1.443 GB, free: 4.176 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.001864/1.197, allocations: 1.005 MB / 1.444 GB, free: 3.172 MB / 1.139 GB Notification: Performance of sort global known variables: time 1.81e-07/1.197, allocations: 3.938 kB / 1.444 GB, free: 3.168 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.004385/1.201, allocations: 1.137 MB / 1.445 GB, free: 2.031 MB / 1.139 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.00417/1.205, allocations: 3.345 MB / 1.449 GB, free: 14.52 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.006749/1.212, allocations: 4.075 MB / 1.453 GB, free: 10.46 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 9.247e-06/1.212, allocations: 0 / 1.453 GB, free: 10.46 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.001548/1.214, allocations: 1.059 MB / 1.454 GB, free: 9.398 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002611/1.216, allocations: 460.3 kB / 1.454 GB, free: 8.984 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03615/1.253, allocations: 21.94 MB / 1.476 GB, free: 1.59 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003523/1.256, allocations: 2.864 MB / 1.478 GB, free: 14.7 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.003167/1.259, allocations: 1.227 MB / 1.48 GB, free: 13.46 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001929/1.261, allocations: 1.272 MB / 1.481 GB, free: 12.19 MB / 1.186 GB Notification: Performance of SimCode: time 8.52e-07/1.261, allocations: 0 / 1.481 GB, free: 12.19 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09217/1.353, allocations: 47.76 MB / 1.527 GB, free: 12.83 MB / 1.232 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/11.9, allocations: 9.375 kB / 1.527 GB, free: 12.83 MB / 1.232 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Loads.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Loads.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Loads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches