Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_RLC_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_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.00153/0.001531, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001894/0.001894, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.345/1.345, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.314/2.314, allocations: 390.2 MB / 0.6643 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 63.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7041/0.7059, allocations: 140.4 MB / 0.9491 GB, free: 9.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.03758/0.7435, allocations: 40.81 MB / 0.9889 GB, free: 9.176 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.0216/0.7651, allocations: 15.05 MB / 1.004 GB, free: 10.08 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004188/0.7693, allocations: 175 kB / 1.004 GB, free: 9.91 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.009236/0.7786, allocations: 4.148 MB / 1.008 GB, free: 5.754 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.005698/0.7843, allocations: 2.636 MB / 1.01 GB, free: 3.105 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.007098/0.7914, allocations: 2.886 MB / 1.013 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01636/0.8078, allocations: 16 MB / 1.029 GB, free: 184 kB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0182/0.826, allocations: 13.65 MB / 1.042 GB, free: 2.398 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005981/0.832, allocations: 4.102 MB / 1.046 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006351/0.8383, allocations: 5.479 MB / 1.052 GB, free: 8.785 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.001063/0.8394, allocations: 0.6133 MB / 1.052 GB, free: 8.172 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003675/0.8431, allocations: 2.04 MB / 1.054 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.003558/0.8467, allocations: 3.363 MB / 1.057 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.00405/0.8507, allocations: 3.916 MB / 1.061 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.01194/0.8627, allocations: 14.03 MB / 1.075 GB, free: 0.7539 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.8627, allocations: 4 kB / 1.075 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.002e-06/0.8627, allocations: 0 / 1.075 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 0.0001964/0.8629, allocations: 0 / 1.075 GB, free: 0.75 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.01336/0.8763, allocations: 7.593 MB / 1.082 GB, free: 9.074 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.8763, allocations: 16.03 kB / 1.082 GB, free: 9.059 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001091/0.8774, allocations: 0.8955 MB / 1.083 GB, free: 8.152 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008403/0.8858, allocations: 1.518 MB / 1.085 GB, free: 6.625 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005927/0.8918, allocations: 4.201 MB / 1.089 GB, free: 2.348 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000272/0.892, allocations: 456.5 kB / 1.089 GB, free: 1.898 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008434/0.8929, allocations: 0.6016 MB / 1.09 GB, free: 1.297 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01379/0.9067, allocations: 10.68 MB / 1.1 GB, free: 6.238 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001144/0.9068, allocations: 23.77 kB / 1.1 GB, free: 6.215 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005995/0.9074, allocations: 267.9 kB / 1.101 GB, free: 5.953 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002378/0.9098, allocations: 0.7729 MB / 1.101 GB, free: 5.176 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0118/0.9216, allocations: 8.561 MB / 1.11 GB, free: 12.59 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04516/0.9668, allocations: 46.85 MB / 1.155 GB, free: 9.98 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004817/0.9717, allocations: 4.315 MB / 1.16 GB, free: 5.652 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00432/0.976, allocations: 3.701 MB / 1.163 GB, free: 1.945 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002121/0.9762, allocations: 46.75 kB / 1.163 GB, free: 1.898 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.666e-05/0.9763, allocations: 69.34 kB / 1.163 GB, free: 1.82 MB / 0.92 GB Notification: Performance of pre-optimization done (n=353): time 4.428e-06/0.9763, allocations: 4 kB / 1.163 GB, free: 1.816 MB / 0.92 GB Notification: Performance of matching and sorting (n=578): time 0.8183/1.795, allocations: 122.7 MB / 1.283 GB, free: 266.8 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.994e-05/1.795, allocations: 109.8 kB / 1.283 GB, free: 266.7 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003279/1.798, allocations: 2.688 MB / 1.286 GB, free: 265.7 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0005408/1.799, allocations: 119.5 kB / 1.286 GB, free: 265.6 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001139/1.8, allocations: 2.681 MB / 1.289 GB, free: 263.6 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.001335/1.801, allocations: 1.949 MB / 1.291 GB, free: 262.1 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001569/1.803, allocations: 0.923 MB / 1.291 GB, free: 261.6 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 3.292e-05/1.803, allocations: 306.2 kB / 1.292 GB, free: 261.3 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004464/1.807, allocations: 4.079 MB / 1.296 GB, free: 259.4 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004824/1.812, allocations: 5.023 MB / 1.301 GB, free: 256.1 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00996/1.822, allocations: 9.854 MB / 1.31 GB, free: 250.1 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.286e-05/1.822, allocations: 7.906 kB / 1.31 GB, free: 250.1 MB / 1.014 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.03016/1.852, allocations: 16.99 MB / 1.327 GB, free: 238.7 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/1.852, allocations: 20.03 kB / 1.327 GB, free: 238.7 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.576e-05/1.852, allocations: 24.81 kB / 1.327 GB, free: 238.7 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02596/1.878, allocations: 9.081 MB / 1.336 GB, free: 229.5 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001747/1.88, allocations: 0.5226 MB / 1.336 GB, free: 229 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07414/1.954, allocations: 70.52 MB / 1.405 GB, free: 157.1 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003846/1.958, allocations: 275.8 kB / 1.405 GB, free: 156.8 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006301/1.959, allocations: 192 kB / 1.406 GB, free: 156.6 MB / 1.014 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 (274): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(5,17,84.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (14,72,59.2%), (14,72,59.2%), (6,40,77.8%), (8,70,73.4%), (8,70,70.3%), (6,40,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003431/1.962, allocations: 2.421 MB / 1.408 GB, free: 154.2 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009803/1.963, allocations: 470.5 kB / 1.408 GB, free: 153.7 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03031/1.993, allocations: 16.82 MB / 1.425 GB, free: 136.7 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-05/1.993, allocations: 56 kB / 1.425 GB, free: 136.7 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.888e-05/1.993, allocations: 72 kB / 1.425 GB, free: 136.6 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.207e-05/1.993, allocations: 27.89 kB / 1.425 GB, free: 136.6 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04001/2.033, allocations: 25.66 MB / 1.45 GB, free: 110.7 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.682e-05/2.034, allocations: 8 kB / 1.45 GB, free: 110.7 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001371/2.035, allocations: 315.5 kB / 1.45 GB, free: 110.4 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02357/2.058, allocations: 8.273 MB / 1.458 GB, free: 102.1 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003415/2.059, allocations: 108 kB / 1.459 GB, free: 102 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06986/2.129, allocations: 67.39 MB / 1.524 GB, free: 33.11 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/2.129, allocations: 11.94 kB / 1.524 GB, free: 33.1 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03304/2.162, allocations: 21.57 MB / 1.545 GB, free: 11.18 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002246/2.164, allocations: 1.354 MB / 1.547 GB, free: 9.797 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009058/2.165, allocations: 119.8 kB / 1.547 GB, free: 9.68 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002762/2.168, allocations: 287.6 kB / 1.547 GB, free: 9.398 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001517/2.169, allocations: 0.5254 MB / 1.548 GB, free: 8.871 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003435/2.17, allocations: 144 kB / 1.548 GB, free: 8.73 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.002014/2.172, allocations: 1.776 MB / 1.55 GB, free: 6.965 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.8e-07/2.172, allocations: 0 / 1.55 GB, free: 6.965 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.00535/2.177, allocations: 2.465 MB / 1.552 GB, free: 4.5 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.Vc[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 (142): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(6,40,77.8%), (8,70,70.3%), (14,72,51.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (5,17,84.0%), (6,40,83.3%), (8,70,70.3%), (14,72,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03541/2.212, allocations: 22.27 MB / 1.574 GB, free: 13.86 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.02158/2.234, allocations: 14.48 MB / 1.588 GB, free: 15.19 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/2.234, allocations: 0 / 1.588 GB, free: 15.19 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.01453/2.249, allocations: 9.359 MB / 1.597 GB, free: 5.684 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004774/2.253, allocations: 1.283 MB / 1.598 GB, free: 4.422 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1232/2.377, allocations: 82.76 MB / 1.679 GB, free: 13.23 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0056/2.382, allocations: 4.893 MB / 1.684 GB, free: 8.289 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.002332/2.385, allocations: 0.7449 MB / 1.685 GB, free: 7.539 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002538/2.387, allocations: 2.608 MB / 1.687 GB, free: 4.93 MB / 1.154 GB Notification: Performance of SimCode: time 6.12e-07/2.387, allocations: 0 / 1.687 GB, free: 4.93 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.337/5.724, allocations: 191.8 MB / 1.874 GB, free: 243.5 MB / 1.154 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001589/5.724, allocations: 246.4 kB / 1.875 GB, free: 243.2 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.391/12.12, allocations: 4 kB / 1.875 GB, free: 243.2 MB / 1.154 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches