Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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_RL,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL",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.000942/0.0009422, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005855/0.005855, allocations: 169 kB / 16.26 MB, free: 6.652 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.276/1.276, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.43/2.43, allocations: 437.8 MB / 0.7121 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003584/0.0003585, allocations: 8 kB / 0.873 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6102/0.6106, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.02614/0.6368, allocations: 25.74 MB / 1.048 GB, free: 6.031 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01311/0.6499, allocations: 8.001 MB / 1.056 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002627/0.6526, allocations: 99.38 kB / 1.056 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001938/0.6546, allocations: 0.5194 MB / 1.057 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.004291/0.6589, allocations: 1.493 MB / 1.058 GB, free: 11.89 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.003738/0.6626, allocations: 1.396 MB / 1.06 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.009017/0.6717, allocations: 8.708 MB / 1.068 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01416/0.6858, allocations: 9.149 MB / 1.077 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00377/0.6896, allocations: 1.863 MB / 1.079 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004223/0.6939, allocations: 2.46 MB / 1.081 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.001/0.6949, allocations: 208 kB / 1.081 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003082/0.698, allocations: 1.201 MB / 1.083 GB, free: 2.781 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.002055/0.7, allocations: 1.664 MB / 1.084 GB, free: 1.113 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.002317/0.7024, allocations: 1.965 MB / 1.086 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.006768/0.7092, allocations: 7.682 MB / 1.094 GB, free: 7.426 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.7092, allocations: 4 kB / 1.094 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.793e-06/0.7092, allocations: 3.938 kB / 1.094 GB, free: 7.418 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0001484/0.7093, allocations: 0 / 1.094 GB, free: 7.418 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.006184/0.7155, allocations: 3.413 MB / 1.097 GB, free: 3.941 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.7156, allocations: 19.97 kB / 1.097 GB, free: 3.922 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007358/0.7163, allocations: 0.5382 MB / 1.097 GB, free: 3.375 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003953/0.7203, allocations: 0.8 MB / 1.098 GB, free: 2.57 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003691/0.724, allocations: 2.428 MB / 1.101 GB, free: 88 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001805/0.7242, allocations: 275.6 kB / 1.101 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006537/0.7248, allocations: 376.4 kB / 1.101 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00858/0.7334, allocations: 5.988 MB / 1.107 GB, free: 9.211 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.253e-05/0.7335, allocations: 19.78 kB / 1.107 GB, free: 9.191 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003485/0.7339, allocations: 156 kB / 1.107 GB, free: 9.039 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005518/0.7344, allocations: 282.9 kB / 1.108 GB, free: 8.762 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006769/0.7412, allocations: 4.524 MB / 1.112 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02446/0.7657, allocations: 27.7 MB / 1.139 GB, free: 6.027 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001476/0.7672, allocations: 1.119 MB / 1.14 GB, free: 4.898 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001219/0.7684, allocations: 1.019 MB / 1.141 GB, free: 3.875 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 5.868e-05/0.7685, allocations: 13 kB / 1.141 GB, free: 3.863 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.7686, allocations: 51.55 kB / 1.141 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=110): time 2.685e-06/0.7686, allocations: 0 / 1.141 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of matching and sorting (n=131): time 0.02043/0.789, allocations: 9.668 MB / 1.151 GB, free: 9.93 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.69e-05/0.7891, allocations: 72.66 kB / 1.151 GB, free: 9.844 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001778/0.7909, allocations: 1.494 MB / 1.152 GB, free: 8.352 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001034/0.791, allocations: 57.7 kB / 1.152 GB, free: 8.289 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009589/0.7919, allocations: 1.667 MB / 1.154 GB, free: 6.598 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003513/0.7923, allocations: 465.4 kB / 1.154 GB, free: 6.137 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001906/0.7925, allocations: 141.6 kB / 1.154 GB, free: 5.992 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 8.346e-05/0.7926, allocations: 309.1 kB / 1.155 GB, free: 5.688 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.7938, allocations: 0.9135 MB / 1.156 GB, free: 4.773 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/0.7954, allocations: 1.467 MB / 1.157 GB, free: 3.066 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002985/0.7984, allocations: 2.546 MB / 1.159 GB, free: 288 kB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.555e-06/0.7984, allocations: 11.94 kB / 1.159 GB, free: 276 kB / 0.9044 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005473/0.8039, allocations: 3.274 MB / 1.163 GB, free: 12.96 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.8039, allocations: 15.94 kB / 1.163 GB, free: 12.94 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.431e-05/0.8039, allocations: 27.92 kB / 1.163 GB, free: 12.91 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002179/0.8061, allocations: 0.7419 MB / 1.163 GB, free: 12.14 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/0.8076, allocations: 387.3 kB / 1.164 GB, free: 11.77 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01379/0.8214, allocations: 15.77 MB / 1.179 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/0.823, allocations: 99.91 kB / 1.179 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002401/0.8232, allocations: 76 kB / 1.179 GB, free: 10.61 MB / 0.9356 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002238/0.8255, allocations: 1.31 MB / 1.181 GB, free: 9.289 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004443/0.8259, allocations: 201.7 kB / 1.181 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004968/0.8309, allocations: 2.788 MB / 1.184 GB, free: 6.258 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.8309, allocations: 12 kB / 1.184 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.466e-05/0.831, allocations: 11.98 kB / 1.184 GB, free: 6.234 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.831, allocations: 3.984 kB / 1.184 GB, free: 6.23 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009533/0.8405, allocations: 6.224 MB / 1.19 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-06/0.8406, allocations: 4 kB / 1.19 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.8417, allocations: 235.6 kB / 1.19 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001912/0.8436, allocations: 0.6677 MB / 1.191 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.667e-05/0.8437, allocations: 44.11 kB / 1.191 GB, free: 14.87 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01317/0.8569, allocations: 15.5 MB / 1.206 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/0.8569, allocations: 7.938 kB / 1.206 GB, free: 14.15 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005919/0.8628, allocations: 4.008 MB / 1.21 GB, free: 10.03 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008272/0.8637, allocations: 458.6 kB / 1.21 GB, free: 9.562 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003522/0.8641, allocations: 36 kB / 1.21 GB, free: 9.527 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.8651, allocations: 83.89 kB / 1.21 GB, free: 9.445 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002814/0.8654, allocations: 112.7 kB / 1.21 GB, free: 9.336 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.513e-05/0.8655, allocations: 44 kB / 1.21 GB, free: 9.293 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.00139/0.8669, allocations: 0.9942 MB / 1.211 GB, free: 8.309 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8669, allocations: 0 / 1.211 GB, free: 8.309 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.002169/0.8691, allocations: 0.6875 MB / 1.212 GB, free: 7.621 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.i_p[2]) * 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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006001/0.8751, allocations: 4.607 MB / 1.217 GB, free: 2.895 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.004985/0.8801, allocations: 3.499 MB / 1.22 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.8801, allocations: 0 / 1.22 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.003049/0.8831, allocations: 2.296 MB / 1.222 GB, free: 12.87 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00439/0.8876, allocations: 0.6268 MB / 1.223 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03886/0.9264, allocations: 24.33 MB / 1.247 GB, free: 2.309 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.446/1.372, allocations: 2.666 MB / 1.249 GB, free: 209.5 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001786/1.374, allocations: 489.4 kB / 1.25 GB, free: 209.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001425/1.376, allocations: 1.281 MB / 1.251 GB, free: 209.5 MB / 0.9981 GB Notification: Performance of SimCode: time 1.342e-06/1.376, allocations: 0 / 1.251 GB, free: 209.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07593/1.452, allocations: 54.23 MB / 1.304 GB, free: 181 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001524/1.452, allocations: 239.9 kB / 1.304 GB, free: 180.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.688/4.14, allocations: 0 / 1.304 GB, free: 180.8 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches