Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.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.Lines.Examples.ACLine_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N",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.001072/0.001072, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001078/0.001078, allocations: 195.3 kB / 16.26 MB, free: 6.621 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.231/1.231, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.332/2.332, allocations: 437 MB / 0.7101 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 67.89 kB / 0.8689 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5602/0.5615, allocations: 151.6 MB / 1.017 GB, free: 2.691 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.03336/0.5949, allocations: 33.04 MB / 1.049 GB, free: 1.547 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01997/0.6149, allocations: 14.67 MB / 1.064 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002787/0.6177, allocations: 143.2 kB / 1.064 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.008047/0.6258, allocations: 3.412 MB / 1.067 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.006927/0.6327, allocations: 2.67 MB / 1.07 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.005031/0.6378, allocations: 2.13 MB / 1.072 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.009472/0.6472, allocations: 8.833 MB / 1.08 GB, free: 1.609 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01477/0.662, allocations: 11.37 MB / 1.091 GB, free: 6.129 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005592/0.6676, allocations: 4.003 MB / 1.095 GB, free: 2.113 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005675/0.6733, allocations: 4.225 MB / 1.099 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001748/0.6751, allocations: 0.7148 MB / 1.1 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003788/0.6789, allocations: 1.72 MB / 1.102 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.003503/0.6824, allocations: 2.826 MB / 1.105 GB, free: 8.605 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.00518/0.6876, allocations: 3.396 MB / 1.108 GB, free: 5.195 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.00958/0.6972, allocations: 11.19 MB / 1.119 GB, free: 9.969 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.6972, allocations: 0 / 1.119 GB, free: 9.969 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.452e-06/0.6972, allocations: 0 / 1.119 GB, free: 9.969 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002147/0.6974, allocations: 0 / 1.119 GB, free: 9.969 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1338 * Number of variables: 1338 Notification: Performance of Generate backend data structure: time 0.01023/0.7077, allocations: 5.981 MB / 1.125 GB, free: 3.91 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.7077, allocations: 8.031 kB / 1.125 GB, free: 3.902 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008673/0.7086, allocations: 0.7271 MB / 1.125 GB, free: 3.164 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005913/0.7145, allocations: 1.138 MB / 1.126 GB, free: 2.02 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005025/0.7195, allocations: 3.324 MB / 1.13 GB, free: 14.62 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002363/0.7198, allocations: 374.4 kB / 1.13 GB, free: 14.25 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006584/0.7205, allocations: 0.4959 MB / 1.131 GB, free: 13.75 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01108/0.7316, allocations: 7.997 MB / 1.138 GB, free: 5.48 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000102/0.7317, allocations: 19.78 kB / 1.138 GB, free: 5.461 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004642/0.7321, allocations: 216 kB / 1.139 GB, free: 5.25 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009479/0.7331, allocations: 445.5 kB / 1.139 GB, free: 4.812 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008459/0.7416, allocations: 6.089 MB / 1.145 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03243/0.774, allocations: 35.16 MB / 1.179 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002397/0.7764, allocations: 2.028 MB / 1.181 GB, free: 6.344 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002181/0.7786, allocations: 1.865 MB / 1.183 GB, free: 4.473 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001049/0.7788, allocations: 18 kB / 1.183 GB, free: 4.457 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/0.7788, allocations: 60.5 kB / 1.183 GB, free: 4.387 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=171): time 3.146e-06/0.7788, allocations: 0 / 1.183 GB, free: 4.387 MB / 0.9356 GB Notification: Performance of matching and sorting (n=276): time 0.1296/0.9084, allocations: 38.88 MB / 1.221 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.9085, allocations: 81.58 kB / 1.221 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002598/0.9111, allocations: 2.286 MB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0001785/0.9113, allocations: 69.7 kB / 1.224 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001217/0.9125, allocations: 2.28 MB / 1.226 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006624/0.9132, allocations: 0.9279 MB / 1.227 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008141/0.914, allocations: 0.5022 MB / 1.227 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 8.44e-05/0.9141, allocations: 309.1 kB / 1.227 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002404/0.9165, allocations: 1.977 MB / 1.229 GB, free: 4.895 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002786/0.9193, allocations: 2.599 MB / 1.232 GB, free: 2.055 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005507/0.9248, allocations: 4.933 MB / 1.237 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/0.9248, allocations: 4 kB / 1.237 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01259/0.9374, allocations: 7.754 MB / 1.244 GB, free: 5.016 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.9375, allocations: 16 kB / 1.244 GB, free: 5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.1e-05/0.9375, allocations: 20 kB / 1.244 GB, free: 4.98 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008236/0.9457, allocations: 3.237 MB / 1.248 GB, free: 1.727 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/0.9471, allocations: 403.3 kB / 1.248 GB, free: 1.332 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4303/1.377, allocations: 33.9 MB / 1.281 GB, free: 193.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002381/1.38, allocations: 159.3 kB / 1.281 GB, free: 193.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002077/1.38, allocations: 109.9 kB / 1.281 GB, free: 193.1 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (202): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(10,28,71.0%), (10,28,65.0%), (6,24,77.8%), (6,24,77.8%), (5,17,84.0%), (5,17,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002194/1.382, allocations: 1.798 MB / 1.283 GB, free: 192.3 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003725/1.383, allocations: 337 kB / 1.283 GB, free: 192.3 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01029/1.393, allocations: 7.353 MB / 1.291 GB, free: 189.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-05/1.393, allocations: 29.53 kB / 1.291 GB, free: 189.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.08e-05/1.393, allocations: 27.38 kB / 1.291 GB, free: 189.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.058e-05/1.393, allocations: 13.97 kB / 1.291 GB, free: 189.3 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0155/1.408, allocations: 12.93 MB / 1.303 GB, free: 183.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/1.408, allocations: 7.469 kB / 1.303 GB, free: 183.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000742/1.409, allocations: 229.6 kB / 1.303 GB, free: 183.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006447/1.416, allocations: 2.885 MB / 1.306 GB, free: 181.3 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001421/1.416, allocations: 48 kB / 1.306 GB, free: 181.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02904/1.445, allocations: 32.69 MB / 1.338 GB, free: 147.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/1.445, allocations: 8 kB / 1.338 GB, free: 147.9 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009029/1.454, allocations: 6.886 MB / 1.345 GB, free: 140.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001003/1.455, allocations: 0.7834 MB / 1.346 GB, free: 140 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003727/1.455, allocations: 58.97 kB / 1.346 GB, free: 139.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001412/1.457, allocations: 175.7 kB / 1.346 GB, free: 139.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000561/1.457, allocations: 249.5 kB / 1.346 GB, free: 139.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001467/1.457, allocations: 72 kB / 1.346 GB, free: 139.4 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001438/1.459, allocations: 1.525 MB / 1.348 GB, free: 137.9 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.31e-07/1.459, allocations: 0 / 1.348 GB, free: 137.9 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002768/1.462, allocations: 1.375 MB / 1.349 GB, free: 136.5 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (105): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(5,17,84.0%), (6,24,77.8%), (10,28,65.0%), (5,17,92.0%), (6,24,77.8%), (10,28,65.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009028/1.471, allocations: 7.516 MB / 1.356 GB, free: 128.8 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01041/1.481, allocations: 8.368 MB / 1.365 GB, free: 120.4 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/1.481, allocations: 0 / 1.365 GB, free: 120.4 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.00518/1.486, allocations: 4.424 MB / 1.369 GB, free: 115.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003382/1.49, allocations: 1.108 MB / 1.37 GB, free: 114.8 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05226/1.542, allocations: 46.05 MB / 1.415 GB, free: 66.09 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002582/1.545, allocations: 3.636 MB / 1.419 GB, free: 62.42 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001742/1.546, allocations: 0.5556 MB / 1.419 GB, free: 61.86 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001424/1.548, allocations: 1.975 MB / 1.421 GB, free: 59.89 MB / 0.9981 GB Notification: Performance of SimCode: time 7.62e-07/1.548, allocations: 0 / 1.421 GB, free: 59.89 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.569/2.117, allocations: 113 MB / 1.531 GB, free: 12.18 MB / 1.061 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000169/2.117, allocations: 243.9 kB / 1.532 GB, free: 11.93 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.806/5.923, allocations: 6.375 kB / 1.532 GB, free: 11.93 MB / 1.061 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches