Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.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: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001172/0.001173, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.414/1.414, allocations: 222.9 MB / 240.2 MB, free: 4.379 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.628/2.628, allocations: 437 MB / 0.7103 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 63.89 kB / 0.8692 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7763/0.7779, allocations: 151.6 MB / 1.017 GB, free: 2.512 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.03491/0.8128, allocations: 30.78 MB / 1.047 GB, free: 3.629 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0231/0.836, allocations: 13.59 MB / 1.061 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00514/0.8412, allocations: 139.3 kB / 1.061 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.009174/0.8504, allocations: 3.208 MB / 1.064 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.01051/0.861, allocations: 2.661 MB / 1.066 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.006916/0.8679, allocations: 2.006 MB / 1.068 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0131/0.881, allocations: 7.619 MB / 1.076 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01163/0.8927, allocations: 8.283 MB / 1.084 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006425/0.8992, allocations: 3.4 MB / 1.087 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007222/0.9064, allocations: 3.376 MB / 1.091 GB, free: 7.129 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.002209/0.9087, allocations: 0.5938 MB / 1.091 GB, free: 6.535 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005023/0.9138, allocations: 1.498 MB / 1.093 GB, free: 5.035 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.003915/0.9177, allocations: 2.366 MB / 1.095 GB, free: 2.664 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.007318/0.925, allocations: 2.882 MB / 1.098 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.01303/0.9381, allocations: 9.402 MB / 1.107 GB, free: 6.34 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 9.217e-06/0.9382, allocations: 0 / 1.107 GB, free: 6.34 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.535e-06/0.9382, allocations: 0 / 1.107 GB, free: 6.34 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0003564/0.9385, allocations: 0 / 1.107 GB, free: 6.34 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1133 * Number of variables: 1133 Notification: Performance of Generate backend data structure: time 0.01574/0.9543, allocations: 5.132 MB / 1.112 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/0.9543, allocations: 19.97 kB / 1.112 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007606/0.962, allocations: 0.9902 MB / 1.113 GB, free: 116 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007821/0.9698, allocations: 2.892 MB / 1.116 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004307/0.9703, allocations: 312.8 kB / 1.116 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002232/0.9725, allocations: 428 kB / 1.116 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02294/0.9955, allocations: 6.795 MB / 1.123 GB, free: 5.324 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000394/0.996, allocations: 19.78 kB / 1.123 GB, free: 5.305 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00241/0.9984, allocations: 188 kB / 1.123 GB, free: 5.121 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001135/0.9996, allocations: 372 kB / 1.124 GB, free: 4.754 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01469/1.014, allocations: 5.11 MB / 1.129 GB, free: 15.62 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04647/1.061, allocations: 30.74 MB / 1.159 GB, free: 14.12 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002499/1.063, allocations: 1.391 MB / 1.16 GB, free: 12.72 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002543/1.066, allocations: 1.324 MB / 1.161 GB, free: 11.4 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001226/1.066, allocations: 13.31 kB / 1.161 GB, free: 11.38 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.332e-05/1.066, allocations: 55.86 kB / 1.161 GB, free: 11.32 MB / 0.92 GB Notification: Performance of pre-optimization done (n=130): time 3.757e-06/1.066, allocations: 0 / 1.161 GB, free: 11.32 MB / 0.92 GB Notification: Performance of matching and sorting (n=199): time 0.0892/1.155, allocations: 23.07 MB / 1.184 GB, free: 4.117 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.428e-05/1.155, allocations: 73.41 kB / 1.184 GB, free: 4.035 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002875/1.158, allocations: 2.066 MB / 1.186 GB, free: 1.953 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0003111/1.159, allocations: 65.58 kB / 1.186 GB, free: 1.883 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001366/1.16, allocations: 2.01 MB / 1.188 GB, free: 15.85 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007418/1.161, allocations: 0.6778 MB / 1.189 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007039/1.162, allocations: 412.1 kB / 1.189 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.515e-05/1.162, allocations: 305.1 kB / 1.189 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002038/1.164, allocations: 1.43 MB / 1.191 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002448/1.166, allocations: 2.013 MB / 1.193 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004791/1.171, allocations: 3.696 MB / 1.196 GB, free: 6.82 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.448e-05/1.171, allocations: 8 kB / 1.196 GB, free: 6.812 MB / 0.9512 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01134/1.182, allocations: 5.653 MB / 1.202 GB, free: 1.09 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.606e-05/1.182, allocations: 12 kB / 1.202 GB, free: 1.078 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.152e-05/1.182, allocations: 20 kB / 1.202 GB, free: 1.059 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006744/1.189, allocations: 2.099 MB / 1.204 GB, free: 14.9 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001716/1.191, allocations: 375.4 kB / 1.204 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03965/1.231, allocations: 38.45 MB / 1.242 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002607/1.233, allocations: 135.9 kB / 1.242 GB, free: 5.418 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002698/1.234, allocations: 88 kB / 1.242 GB, free: 5.332 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 (204): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,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%), (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 prepare postOptimizeDAE: time 0.002584/1.236, allocations: 1.5 MB / 1.244 GB, free: 3.82 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006264/1.237, allocations: 288.6 kB / 1.244 GB, free: 3.535 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5858/1.823, allocations: 5.205 MB / 1.249 GB, free: 207.9 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.28e-05/1.823, allocations: 19.17 kB / 1.249 GB, free: 207.9 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-05/1.823, allocations: 17.91 kB / 1.249 GB, free: 207.9 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.161e-05/1.823, allocations: 16.11 kB / 1.249 GB, free: 207.9 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02091/1.844, allocations: 9.681 MB / 1.258 GB, free: 205.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-05/1.844, allocations: 6.938 kB / 1.258 GB, free: 205.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001167/1.845, allocations: 213.1 kB / 1.259 GB, free: 205.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006476/1.851, allocations: 1.855 MB / 1.26 GB, free: 205 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002723/1.852, allocations: 38.75 kB / 1.26 GB, free: 205 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03128/1.883, allocations: 37.47 MB / 1.297 GB, free: 174.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/1.883, allocations: 11.69 kB / 1.297 GB, free: 174.5 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007909/1.891, allocations: 4.911 MB / 1.302 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001498/1.893, allocations: 0.6196 MB / 1.302 GB, free: 172.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005454/1.893, allocations: 44.83 kB / 1.302 GB, free: 172.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001517/1.895, allocations: 124.2 kB / 1.303 GB, free: 172 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006866/1.895, allocations: 196.9 kB / 1.303 GB, free: 172 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/1.895, allocations: 52.66 kB / 1.303 GB, free: 172 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001861/1.897, allocations: 1.379 MB / 1.304 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.71e-07/1.897, allocations: 0 / 1.304 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003372/1.901, allocations: 1.05 MB / 1.305 GB, free: 171.4 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 (112): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003132/1.901, allocations: 175.5 kB / 1.305 GB, free: 171.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01021/1.911, allocations: 7.206 MB / 1.312 GB, free: 167.5 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.42e-05/1.911, allocations: 12 kB / 1.312 GB, free: 167.5 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.005714/1.917, allocations: 4.392 MB / 1.317 GB, free: 164.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004496/1.922, allocations: 0.9957 MB / 1.318 GB, free: 163.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/1.934, allocations: 8.14 MB / 1.326 GB, free: 156.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002758/1.937, allocations: 3.127 MB / 1.329 GB, free: 153.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001857/1.939, allocations: 0.5198 MB / 1.329 GB, free: 152.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003382/1.939, allocations: 151.4 kB / 1.329 GB, free: 152.6 MB / 0.9981 GB Notification: Performance of SimCode: time 1.102e-06/1.939, allocations: 0 / 1.329 GB, free: 152.6 MB / 0.9981 GB Notification: Performance of Templates: time 0.08581/2.025, allocations: 59.99 MB / 1.388 GB, free: 93.48 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches