Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.001619/0.001619, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 223.3 MB / 240 MB, free: 5.391 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.624/2.624, allocations: 390.9 MB / 0.666 GB, free: 2.477 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004003/0.0004005, allocations: 8 kB / 0.8154 GB, free: 13.63 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8615/0.8619, allocations: 142.4 MB / 0.9545 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.02803/0.89, allocations: 24.27 MB / 0.9782 GB, free: 5.258 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01661/0.9067, allocations: 7.686 MB / 0.9857 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003555/0.9103, allocations: 101.2 kB / 0.9858 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002391/0.9127, allocations: 0.5139 MB / 0.9863 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.005275/0.918, allocations: 1.283 MB / 0.9875 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004169/0.9222, allocations: 0.9831 MB / 0.9885 GB, free: 12.59 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.009444/0.9317, allocations: 6.869 MB / 0.9952 GB, free: 5.699 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01387/0.9456, allocations: 8.179 MB / 1.003 GB, free: 13.46 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004374/0.95, allocations: 1.883 MB / 1.005 GB, free: 11.57 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005061/0.9551, allocations: 2.394 MB / 1.007 GB, free: 9.168 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001162/0.9563, allocations: 212 kB / 1.008 GB, free: 8.961 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002694/0.959, allocations: 0.6048 MB / 1.008 GB, free: 8.355 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.002456/0.9615, allocations: 1.656 MB / 1.01 GB, free: 6.695 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001553/0.963, allocations: 0.8005 MB / 1.011 GB, free: 5.887 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.008286/0.9713, allocations: 6.633 MB / 1.017 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.9714, allocations: 0 / 1.017 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.944e-06/0.9714, allocations: 0 / 1.017 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0002552/0.9716, allocations: 0 / 1.017 GB, free: 15.23 MB / 0.7794 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.009176/0.9808, allocations: 3.463 MB / 1.02 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.9809, allocations: 12.03 kB / 1.02 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004961/0.9858, allocations: 0.7952 MB / 1.021 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004993/0.9909, allocations: 2.37 MB / 1.024 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002095/0.9911, allocations: 275.2 kB / 1.024 GB, free: 8.203 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009638/0.9921, allocations: 375.9 kB / 1.024 GB, free: 7.836 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01227/1.004, allocations: 5.957 MB / 1.03 GB, free: 1.625 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001298/1.005, allocations: 23.77 kB / 1.03 GB, free: 1.602 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005937/1.005, allocations: 156 kB / 1.03 GB, free: 1.449 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005942/1.006, allocations: 282.9 kB / 1.03 GB, free: 1.172 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008522/1.014, allocations: 4.496 MB / 1.035 GB, free: 12.66 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03161/1.046, allocations: 27.69 MB / 1.062 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001748/1.048, allocations: 1.113 MB / 1.063 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001386/1.049, allocations: 1.024 MB / 1.064 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.8e-05/1.049, allocations: 13 kB / 1.064 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.593e-05/1.049, allocations: 47.56 kB / 1.064 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=110): time 2.875e-06/1.049, allocations: 0 / 1.064 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of matching and sorting (n=131): time 0.02193/1.071, allocations: 9.66 MB / 1.073 GB, free: 2.383 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/1.071, allocations: 68.67 kB / 1.073 GB, free: 2.305 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002527/1.074, allocations: 1.486 MB / 1.075 GB, free: 0.8203 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001632/1.074, allocations: 53.7 kB / 1.075 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.001292/1.075, allocations: 1.667 MB / 1.077 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005268/1.076, allocations: 465.4 kB / 1.077 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/1.076, allocations: 36 kB / 1.077 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001685/1.076, allocations: 377.9 kB / 1.077 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001377/1.078, allocations: 0.9096 MB / 1.078 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001759/1.079, allocations: 1.463 MB / 1.08 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001723/1.081, allocations: 1.135 MB / 1.081 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.574e-05/1.081, allocations: 8 kB / 1.081 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005973/1.087, allocations: 3.27 MB / 1.084 GB, free: 7.133 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.455e-05/1.087, allocations: 12 kB / 1.084 GB, free: 7.121 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.19e-05/1.087, allocations: 23.95 kB / 1.084 GB, free: 7.098 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002173/1.089, allocations: 0.7374 MB / 1.085 GB, free: 6.332 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001563/1.091, allocations: 383.3 kB / 1.085 GB, free: 5.957 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01532/1.106, allocations: 15.76 MB / 1.101 GB, free: 4.984 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001898/1.108, allocations: 107.9 kB / 1.101 GB, free: 4.879 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003406/1.109, allocations: 76 kB / 1.101 GB, free: 4.805 MB / 0.8575 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 (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002929/1.111, allocations: 1.313 MB / 1.102 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006062/1.112, allocations: 201.7 kB / 1.102 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005428/1.118, allocations: 2.777 MB / 1.105 GB, free: 480 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-05/1.118, allocations: 15.95 kB / 1.105 GB, free: 464 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.448e-05/1.118, allocations: 8 kB / 1.105 GB, free: 456 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/1.118, allocations: 7.969 kB / 1.105 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01195/1.13, allocations: 6.209 MB / 1.111 GB, free: 10.06 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.429e-05/1.13, allocations: 7.953 kB / 1.111 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001177/1.131, allocations: 231.8 kB / 1.111 GB, free: 9.828 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001938/1.133, allocations: 0.6712 MB / 1.112 GB, free: 9.129 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001406/1.133, allocations: 32 kB / 1.112 GB, free: 9.098 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01459/1.148, allocations: 15.49 MB / 1.127 GB, free: 8.406 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.865e-05/1.148, allocations: 11.94 kB / 1.127 GB, free: 8.395 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007108/1.155, allocations: 3.989 MB / 1.131 GB, free: 4.297 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001355/1.156, allocations: 462.5 kB / 1.131 GB, free: 3.824 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005769/1.157, allocations: 35.98 kB / 1.131 GB, free: 3.789 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/1.158, allocations: 87.95 kB / 1.132 GB, free: 3.703 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003613/1.158, allocations: 116.8 kB / 1.132 GB, free: 3.59 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/1.158, allocations: 43.94 kB / 1.132 GB, free: 3.547 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001799/1.16, allocations: 0.9786 MB / 1.133 GB, free: 2.578 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.7e-07/1.16, allocations: 0 / 1.133 GB, free: 2.578 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.002925/1.163, allocations: 0.6836 MB / 1.133 GB, free: 1.895 MB / 0.8887 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 (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003382/1.164, allocations: 147.1 kB / 1.133 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.005763/1.169, allocations: 3.491 MB / 1.137 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.654e-05/1.169, allocations: 4 kB / 1.137 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.003844/1.173, allocations: 2.288 MB / 1.139 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005155/1.178, allocations: 0.6243 MB / 1.14 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0138/1.192, allocations: 7.833 MB / 1.147 GB, free: 3.191 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003532/1.196, allocations: 2.672 MB / 1.15 GB, free: 500 kB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001883/1.198, allocations: 489.4 kB / 1.15 GB, free: 8 kB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004314/1.198, allocations: 123.5 kB / 1.151 GB, free: 15.88 MB / 0.92 GB Notification: Performance of SimCode: time 1.192e-06/1.198, allocations: 0 / 1.151 GB, free: 15.88 MB / 0.92 GB Notification: Performance of Templates: time 0.05854/1.257, allocations: 31.18 MB / 1.181 GB, free: 1.172 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches