Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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_R_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_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.001321/0.001322, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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: 193.7 kB / 16.25 MB, free: 6.637 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.26/1.26, allocations: 222.9 MB / 239.9 MB, free: 4.543 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.419/2.419, allocations: 437 MB / 0.7101 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 67.91 kB / 0.8689 GB, free: 5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6471/0.6486, allocations: 151.6 MB / 1.017 GB, free: 2.75 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.03964/0.6883, allocations: 37.62 MB / 1.054 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01713/0.7054, allocations: 10.9 MB / 1.064 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003589/0.709, allocations: 139.2 kB / 1.064 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.01024/0.7193, allocations: 4.086 MB / 1.068 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.006449/0.7258, allocations: 2.045 MB / 1.07 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.005348/0.7312, allocations: 1.978 MB / 1.072 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.01071/0.7419, allocations: 9.315 MB / 1.081 GB, free: 0.4922 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02134/0.7633, allocations: 13.57 MB / 1.095 GB, free: 2.812 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006568/0.7699, allocations: 4.058 MB / 1.099 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006835/0.7767, allocations: 4.717 MB / 1.103 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.002464/0.7792, allocations: 0.828 MB / 1.104 GB, free: 9.184 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004443/0.7837, allocations: 1.588 MB / 1.106 GB, free: 7.594 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.004777/0.7885, allocations: 3.142 MB / 1.109 GB, free: 4.445 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.007104/0.7956, allocations: 3.661 MB / 1.112 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.01439/0.81, allocations: 12.3 MB / 1.124 GB, free: 4.438 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 7.595e-06/0.81, allocations: 0 / 1.124 GB, free: 4.438 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.563e-06/0.8101, allocations: 3.938 kB / 1.124 GB, free: 4.434 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0004337/0.8105, allocations: 4 kB / 1.124 GB, free: 4.43 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: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01527/0.8258, allocations: 6.315 MB / 1.13 GB, free: 14.04 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.8258, allocations: 12.03 kB / 1.13 GB, free: 14.03 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001417/0.8273, allocations: 0.8255 MB / 1.131 GB, free: 13.2 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004808/0.8321, allocations: 1.071 MB / 1.132 GB, free: 12.12 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005461/0.8376, allocations: 3.415 MB / 1.136 GB, free: 8.648 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002726/0.8378, allocations: 427.7 kB / 1.136 GB, free: 8.23 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009317/0.8388, allocations: 0.5394 MB / 1.137 GB, free: 7.691 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01627/0.8551, allocations: 9.381 MB / 1.146 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001145/0.8552, allocations: 27.7 kB / 1.146 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005448/0.8558, allocations: 248 kB / 1.146 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005047/0.8563, allocations: 414.9 kB / 1.146 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01178/0.8681, allocations: 7.123 MB / 1.153 GB, free: 6.168 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04311/0.9112, allocations: 41.32 MB / 1.194 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00536/0.9166, allocations: 3.096 MB / 1.197 GB, free: 6.008 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003402/0.92, allocations: 2.141 MB / 1.199 GB, free: 3.863 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001909/0.9203, allocations: 22 kB / 1.199 GB, free: 3.844 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.56e-05/0.9203, allocations: 56.56 kB / 1.199 GB, free: 3.777 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=209): time 3.767e-06/0.9203, allocations: 0 / 1.199 GB, free: 3.777 MB / 0.9512 GB Notification: Performance of matching and sorting (n=212): time 0.02377/0.9441, allocations: 10.56 MB / 1.209 GB, free: 9.117 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.9442, allocations: 77.39 kB / 1.209 GB, free: 9.031 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002942/0.9471, allocations: 2.005 MB / 1.211 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0001577/0.9473, allocations: 65.64 kB / 1.211 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001486/0.9488, allocations: 2.412 MB / 1.214 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006292/0.9495, allocations: 0.7279 MB / 1.214 GB, free: 3.758 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007703/0.9502, allocations: 473.2 kB / 1.215 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.345e-05/0.9503, allocations: 305.1 kB / 1.215 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001874/0.9522, allocations: 1.372 MB / 1.216 GB, free: 1.613 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002304/0.9545, allocations: 2.112 MB / 1.219 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004481/0.959, allocations: 3.762 MB / 1.222 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.89e-05/0.9591, allocations: 4 kB / 1.222 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007836/0.9669, allocations: 5.076 MB / 1.227 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.146e-05/0.9669, allocations: 16 kB / 1.227 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.28e-05/0.967, allocations: 20 kB / 1.227 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003375/0.9704, allocations: 1.596 MB / 1.229 GB, free: 4.367 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001495/0.9719, allocations: 455.2 kB / 1.229 GB, free: 3.922 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02127/0.9932, allocations: 18.59 MB / 1.247 GB, free: 0.7734 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002259/0.9955, allocations: 143.9 kB / 1.247 GB, free: 0.6328 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004041/0.9959, allocations: 108 kB / 1.248 GB, free: 0.5273 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.5125/1.508, allocations: 1.935 MB / 1.249 GB, free: 209.8 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000921/1.509, allocations: 293.6 kB / 1.25 GB, free: 209.8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007921/1.517, allocations: 4.447 MB / 1.254 GB, free: 209.1 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-05/1.517, allocations: 24.81 kB / 1.254 GB, free: 209.1 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.5e-05/1.517, allocations: 17.31 kB / 1.254 GB, free: 209.1 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.248e-05/1.517, allocations: 11.69 kB / 1.254 GB, free: 209.1 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01519/1.533, allocations: 9.67 MB / 1.264 GB, free: 205.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.101e-05/1.533, allocations: 4.75 kB / 1.264 GB, free: 205.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009732/1.534, allocations: 234.8 kB / 1.264 GB, free: 205.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003283/1.537, allocations: 1.441 MB / 1.265 GB, free: 204.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001403/1.537, allocations: 36.19 kB / 1.265 GB, free: 204.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0178/1.555, allocations: 18.57 MB / 1.283 GB, free: 194 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/1.555, allocations: 11.88 kB / 1.283 GB, free: 194 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005894/1.561, allocations: 4.539 MB / 1.288 GB, free: 192.1 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009705/1.562, allocations: 0.6299 MB / 1.288 GB, free: 191.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003197/1.562, allocations: 43.08 kB / 1.288 GB, free: 191.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001138/1.563, allocations: 113 kB / 1.289 GB, free: 191.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004789/1.564, allocations: 181.1 kB / 1.289 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/1.564, allocations: 63.88 kB / 1.289 GB, free: 191.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00156/1.565, allocations: 1.317 MB / 1.29 GB, free: 191.2 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.3e-07/1.565, allocations: 0 / 1.29 GB, free: 191.2 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002598/1.568, allocations: 1.14 MB / 1.291 GB, free: 191.1 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005438/1.574, allocations: 5.167 MB / 1.296 GB, free: 188.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.007248/1.581, allocations: 5.908 MB / 1.302 GB, free: 183.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/1.581, allocations: 4 kB / 1.302 GB, free: 183.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003354/1.584, allocations: 2.907 MB / 1.305 GB, free: 180.1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003138/1.587, allocations: 0.8901 MB / 1.306 GB, free: 179.3 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03939/1.627, allocations: 35.95 MB / 1.341 GB, free: 140.9 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002866/1.63, allocations: 3.702 MB / 1.344 GB, free: 137.1 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001792/1.631, allocations: 0.5518 MB / 1.345 GB, free: 136.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001521/1.633, allocations: 1.944 MB / 1.347 GB, free: 134.6 MB / 0.9981 GB Notification: Performance of SimCode: time 7.41e-07/1.633, allocations: 0 / 1.347 GB, free: 134.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09831/1.731, allocations: 85.76 MB / 1.431 GB, free: 49.87 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001597/1.731, allocations: 253.1 kB / 1.431 GB, free: 49.61 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.277/5.008, allocations: 3.938 kB / 1.431 GB, free: 49.61 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches