Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007846/0.007846, allocations: 101.5 kB / 15.88 MB, free: 5.867 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: 191.7 kB / 16.79 MB, free: 5.809 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.351/1.351, allocations: 222.9 MB / 240.5 MB, free: 4.57 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.622/2.622, allocations: 437 MB / 0.7106 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 60.14 kB / 0.8692 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6486/0.65, allocations: 151.6 MB / 1.017 GB, free: 2.898 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03693/0.687, allocations: 34.81 MB / 1.051 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01727/0.7043, allocations: 9.918 MB / 1.061 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004269/0.7087, allocations: 127.3 kB / 1.061 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.009713/0.7184, allocations: 3.545 MB / 1.065 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.006556/0.725, allocations: 1.917 MB / 1.066 GB, free: 440 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.006064/0.7311, allocations: 1.788 MB / 1.068 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.01291/0.7441, allocations: 11.19 MB / 1.079 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01876/0.7629, allocations: 10.7 MB / 1.09 GB, free: 8.609 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006278/0.7692, allocations: 2.872 MB / 1.092 GB, free: 5.727 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007358/0.7766, allocations: 3.805 MB / 1.096 GB, free: 1.91 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.002516/0.7792, allocations: 464 kB / 1.097 GB, free: 1.457 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004882/0.7841, allocations: 1.443 MB / 1.098 GB, free: 12 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.004502/0.7886, allocations: 2.405 MB / 1.1 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.007362/0.796, allocations: 2.843 MB / 1.103 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0104/0.8064, allocations: 8.792 MB / 1.112 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 9.297e-06/0.8065, allocations: 4 kB / 1.112 GB, free: 1.93 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.984e-06/0.8065, allocations: 3.938 kB / 1.112 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0003926/0.8069, allocations: 0 / 1.112 GB, free: 1.926 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: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01599/0.8229, allocations: 5.401 MB / 1.117 GB, free: 12.45 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 6.306e-05/0.823, allocations: 8.031 kB / 1.117 GB, free: 12.44 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006185/0.8292, allocations: 0.9587 MB / 1.118 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006936/0.8361, allocations: 2.999 MB / 1.121 GB, free: 8.422 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003985/0.8366, allocations: 361.9 kB / 1.121 GB, free: 8.066 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002066/0.8386, allocations: 468.2 kB / 1.122 GB, free: 7.609 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02007/0.8587, allocations: 7.906 MB / 1.129 GB, free: 15.34 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002787/0.8591, allocations: 19.88 kB / 1.129 GB, free: 15.32 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00185/0.8609, allocations: 208 kB / 1.13 GB, free: 15.12 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006135/0.8615, allocations: 365.1 kB / 1.13 GB, free: 14.76 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01323/0.8748, allocations: 5.945 MB / 1.136 GB, free: 8.797 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04342/0.9183, allocations: 36.2 MB / 1.171 GB, free: 1.363 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003687/0.922, allocations: 2.131 MB / 1.173 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002086/0.9241, allocations: 1.48 MB / 1.175 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001322/0.9243, allocations: 21.31 kB / 1.175 GB, free: 13.71 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.818e-05/0.9243, allocations: 59.81 kB / 1.175 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=157): time 4.639e-06/0.9243, allocations: 3.984 kB / 1.175 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of matching and sorting (n=160): time 0.01466/0.939, allocations: 7.536 MB / 1.182 GB, free: 5.832 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.392e-05/0.9391, allocations: 68.72 kB / 1.182 GB, free: 5.754 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002902/0.942, allocations: 1.872 MB / 1.184 GB, free: 3.855 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0002517/0.9423, allocations: 53.7 kB / 1.184 GB, free: 3.797 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001342/0.9436, allocations: 2.123 MB / 1.186 GB, free: 1.648 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006383/0.9443, allocations: 0.5507 MB / 1.187 GB, free: 1.09 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007403/0.945, allocations: 403.7 kB / 1.187 GB, free: 0.6875 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.236e-05/0.9451, allocations: 305.1 kB / 1.187 GB, free: 396 kB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001605/0.9467, allocations: 1.062 MB / 1.188 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002059/0.9488, allocations: 1.764 MB / 1.19 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003922/0.9528, allocations: 3.045 MB / 1.193 GB, free: 9.875 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.798e-05/0.9528, allocations: 8 kB / 1.193 GB, free: 9.867 MB / 0.9512 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.006983/0.9598, allocations: 3.932 MB / 1.197 GB, free: 5.891 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.844e-05/0.9599, allocations: 12 kB / 1.197 GB, free: 5.879 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-05/0.9599, allocations: 24 kB / 1.197 GB, free: 5.855 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002642/0.9625, allocations: 0.9313 MB / 1.198 GB, free: 4.887 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001725/0.9643, allocations: 423.3 kB / 1.198 GB, free: 4.473 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0193/0.9836, allocations: 21.06 MB / 1.219 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/0.9857, allocations: 123.8 kB / 1.219 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003681/0.9861, allocations: 96 kB / 1.219 GB, free: 13.6 MB / 0.9825 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,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.002937/0.989, allocations: 1.644 MB / 1.221 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007578/0.9898, allocations: 253.1 kB / 1.221 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005883/0.9957, allocations: 3.267 MB / 1.224 GB, free: 8.379 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.57e-05/0.9957, allocations: 19.98 kB / 1.224 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.152e-05/0.9958, allocations: 8 kB / 1.224 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-05/0.9958, allocations: 11.91 kB / 1.224 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0147/1.011, allocations: 7.556 MB / 1.231 GB, free: 0.6289 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.339e-05/1.011, allocations: 4 kB / 1.231 GB, free: 0.625 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/1.012, allocations: 212.3 kB / 1.232 GB, free: 428 kB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002491/1.014, allocations: 0.9043 MB / 1.232 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000168/1.014, allocations: 36 kB / 1.232 GB, free: 15.44 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5814/1.596, allocations: 21 MB / 1.253 GB, free: 203.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/1.596, allocations: 12.88 kB / 1.253 GB, free: 203.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005998/1.602, allocations: 3.382 MB / 1.256 GB, free: 202.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001606/1.603, allocations: 0.5296 MB / 1.257 GB, free: 202.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004037/1.604, allocations: 36.84 kB / 1.257 GB, free: 202.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/1.605, allocations: 91.25 kB / 1.257 GB, free: 202.5 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005345/1.605, allocations: 141.2 kB / 1.257 GB, free: 202.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001266/1.606, allocations: 46.59 kB / 1.257 GB, free: 202.4 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002339/1.608, allocations: 1.226 MB / 1.258 GB, free: 202 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.7e-07/1.608, allocations: 0 / 1.258 GB, free: 202 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003781/1.612, allocations: 0.9041 MB / 1.259 GB, free: 201.9 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(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%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003177/1.612, allocations: 160.5 kB / 1.259 GB, free: 201.8 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.007481/1.62, allocations: 4.405 MB / 1.264 GB, free: 199.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 9.789e-06/1.62, allocations: 1.25 kB / 1.264 GB, free: 199.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004157/1.624, allocations: 2.993 MB / 1.267 GB, free: 197.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003967/1.628, allocations: 0.7709 MB / 1.267 GB, free: 197.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01542/1.643, allocations: 10.34 MB / 1.277 GB, free: 191.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004118/1.647, allocations: 3.278 MB / 1.281 GB, free: 190.1 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007449/1.648, allocations: 161.4 kB / 1.281 GB, free: 190.1 MB / 0.9981 GB Notification: Performance of SimCode: time 9.72e-07/1.648, allocations: 0 / 1.281 GB, free: 190.1 MB / 0.9981 GB Notification: Performance of Templates: time 0.2425/1.891, allocations: 339.6 MB / 1.612 GB, free: 5.742 MB / 1.139 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches