Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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,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_9_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_9_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.0008727/0.0008724, allocations: 97.56 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.007589/0.007589, allocations: 169.1 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.458/1.458, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.542/2.542, allocations: 390.9 MB / 0.6663 GB, free: 2.285 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003677/0.0003678, allocations: 8 kB / 0.816 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8062/0.8066, allocations: 142.4 MB / 0.9551 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.0317/0.8384, allocations: 29.71 MB / 0.9841 GB, free: 0.8008 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.02518/0.8636, allocations: 13.41 MB / 0.9972 GB, free: 4.039 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003275/0.8669, allocations: 127.2 kB / 0.9973 GB, free: 3.914 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002311/0.8692, allocations: 0.6512 MB / 0.9979 GB, free: 3.258 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.008469/0.8777, allocations: 2.472 MB / 1 GB, free: 0.7734 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.005201/0.8829, allocations: 1.703 MB / 1.002 GB, free: 15.07 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01274/0.8957, allocations: 10.43 MB / 1.012 GB, free: 4.613 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01819/0.9139, allocations: 10.18 MB / 1.022 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007462/0.9214, allocations: 2.591 MB / 1.025 GB, free: 7.715 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00656/0.928, allocations: 2.942 MB / 1.028 GB, free: 4.762 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.001258/0.9293, allocations: 244 kB / 1.028 GB, free: 4.523 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003616/0.9329, allocations: 1.384 MB / 1.029 GB, free: 3.137 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.002227/0.9352, allocations: 1.913 MB / 1.031 GB, free: 1.219 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.003244/0.9384, allocations: 2.384 MB / 1.033 GB, free: 14.82 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.009161/0.9476, allocations: 9.021 MB / 1.042 GB, free: 5.766 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.9476, allocations: 0 / 1.042 GB, free: 5.766 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.114e-06/0.9476, allocations: 4 kB / 1.042 GB, free: 5.762 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0002193/0.9479, allocations: 0 / 1.042 GB, free: 5.762 MB / 0.795 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.008684/0.9566, allocations: 4.154 MB / 1.046 GB, free: 1.531 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.9566, allocations: 8.031 kB / 1.046 GB, free: 1.523 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006068/0.9627, allocations: 0.998 MB / 1.047 GB, free: 0.5195 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006001/0.9687, allocations: 2.904 MB / 1.05 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00023/0.969, allocations: 308.9 kB / 1.05 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009307/0.9699, allocations: 424 kB / 1.051 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01383/0.9838, allocations: 6.784 MB / 1.057 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001167/0.9839, allocations: 23.78 kB / 1.057 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005051/0.9844, allocations: 188 kB / 1.058 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001014/0.9854, allocations: 372 kB / 1.058 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01264/0.9981, allocations: 5.106 MB / 1.063 GB, free: 40 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04173/1.04, allocations: 30.8 MB / 1.093 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0022/1.042, allocations: 1.385 MB / 1.094 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001727/1.044, allocations: 1.331 MB / 1.096 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 7.914e-05/1.044, allocations: 21.25 kB / 1.096 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.4e-05/1.044, allocations: 51.88 kB / 1.096 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=130): time 4.669e-06/1.044, allocations: 3.984 kB / 1.096 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of matching and sorting (n=199): time 0.0884/1.132, allocations: 22.79 MB / 1.118 GB, free: 4.746 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.581e-05/1.133, allocations: 77.41 kB / 1.118 GB, free: 4.66 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003099/1.136, allocations: 2.055 MB / 1.12 GB, free: 2.59 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0003162/1.136, allocations: 61.7 kB / 1.12 GB, free: 2.523 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.001602/1.138, allocations: 2.006 MB / 1.122 GB, free: 0.4922 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008229/1.138, allocations: 0.6818 MB / 1.123 GB, free: 15.8 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002826/1.139, allocations: 178.3 kB / 1.123 GB, free: 15.62 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001225/1.139, allocations: 309 kB / 1.123 GB, free: 15.31 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002167/1.141, allocations: 1.43 MB / 1.125 GB, free: 13.88 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002528/1.144, allocations: 2.017 MB / 1.127 GB, free: 11.61 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004961/1.149, allocations: 3.696 MB / 1.13 GB, free: 7.668 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/1.149, allocations: 7.938 kB / 1.13 GB, free: 7.66 MB / 0.8887 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01121/1.16, allocations: 5.661 MB / 1.136 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.574e-05/1.16, allocations: 12 kB / 1.136 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-05/1.16, allocations: 16 kB / 1.136 GB, free: 1.902 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006728/1.167, allocations: 2.084 MB / 1.138 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00164/1.168, allocations: 375.3 kB / 1.138 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03806/1.206, allocations: 35.55 MB / 1.173 GB, free: 9.441 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002617/1.209, allocations: 127.8 kB / 1.173 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002248/1.209, allocations: 96 kB / 1.173 GB, free: 9.223 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 (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.002782/1.212, allocations: 1.508 MB / 1.175 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005854/1.213, allocations: 280.7 kB / 1.175 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01074/1.223, allocations: 5.211 MB / 1.18 GB, free: 2.141 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.518e-05/1.223, allocations: 20 kB / 1.18 GB, free: 2.121 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.975e-05/1.223, allocations: 16 kB / 1.18 GB, free: 2.105 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.512e-05/1.224, allocations: 15.89 kB / 1.18 GB, free: 2.09 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01801/1.242, allocations: 9.673 MB / 1.189 GB, free: 8.207 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.519e-05/1.242, allocations: 11.94 kB / 1.189 GB, free: 8.195 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008563/1.242, allocations: 215.7 kB / 1.19 GB, free: 7.984 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005857/1.248, allocations: 1.842 MB / 1.191 GB, free: 6.086 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001756/1.249, allocations: 39.94 kB / 1.191 GB, free: 6.047 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03591/1.284, allocations: 34.56 MB / 1.225 GB, free: 1.082 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/1.284, allocations: 16 kB / 1.225 GB, free: 1.066 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009653/1.294, allocations: 4.913 MB / 1.23 GB, free: 12 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001606/1.296, allocations: 0.6147 MB / 1.231 GB, free: 11.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004283/1.296, allocations: 44 kB / 1.231 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001503/1.298, allocations: 127.8 kB / 1.231 GB, free: 11.19 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000723/1.298, allocations: 189.6 kB / 1.231 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001272/1.299, allocations: 60 kB / 1.231 GB, free: 10.95 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00202/1.301, allocations: 1.378 MB / 1.232 GB, free: 9.562 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.9e-07/1.301, allocations: 4 kB / 1.232 GB, free: 9.559 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003517/1.304, allocations: 1.047 MB / 1.233 GB, free: 8.512 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.0003725/1.305, allocations: 178.8 kB / 1.234 GB, free: 8.324 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01072/1.315, allocations: 6.276 MB / 1.24 GB, free: 1.812 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.428e-05/1.315, allocations: 4 kB / 1.24 GB, free: 1.809 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.007321/1.323, allocations: 4.403 MB / 1.244 GB, free: 13.18 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00681/1.329, allocations: 0.9131 MB / 1.245 GB, free: 12.27 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01586/1.345, allocations: 10.06 MB / 1.255 GB, free: 2.121 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5262/1.872, allocations: 3.119 MB / 1.258 GB, free: 267.8 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.002478/1.874, allocations: 0.52 MB / 1.258 GB, free: 267.8 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004808/1.875, allocations: 150.8 kB / 1.258 GB, free: 267.8 MB / 1.014 GB Notification: Performance of SimCode: time 1.403e-06/1.875, allocations: 0.9062 kB / 1.258 GB, free: 267.8 MB / 1.014 GB Notification: Performance of Templates: time 0.09822/1.973, allocations: 57.03 MB / 1.314 GB, free: 240 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches