Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.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.ACLineMatrix_RLC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2.terminal_n.phase.1..i.1.|Rline_2.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2.terminal_n.phase.1..i.1.|Rline_2.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001628/0.001628, 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.00219/0.00219, allocations: 195.3 kB / 16.14 MB, free: 6.719 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.462/1.462, allocations: 222.9 MB / 239.8 MB, free: 4.48 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.492/2.492, allocations: 390.2 MB / 0.6642 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001234, allocations: 67.89 kB / 0.8119 GB, free: 14.84 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7633/0.7645, allocations: 140.4 MB / 0.9489 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC): time 0.01119/0.7758, allocations: 9.998 MB / 0.9587 GB, free: 1.441 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.005733/0.7815, allocations: 3.047 MB / 0.9617 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.7827, allocations: 33.47 kB / 0.9617 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.00187/0.7845, allocations: 0.6225 MB / 0.9623 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002047/0.7866, allocations: 0.653 MB / 0.963 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001637/0.7883, allocations: 0.585 MB / 0.9635 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.004838/0.7931, allocations: 4.065 MB / 0.9675 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004456/0.7976, allocations: 2.811 MB / 0.9702 GB, free: 10.05 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002127/0.7998, allocations: 0.9623 MB / 0.9712 GB, free: 9.539 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002982/0.8028, allocations: 1.427 MB / 0.9726 GB, free: 8.746 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0008527/0.8036, allocations: 150.4 kB / 0.9727 GB, free: 8.746 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001633/0.8053, allocations: 0.496 MB / 0.9732 GB, free: 8.539 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.001173/0.8065, allocations: 0.9093 MB / 0.9741 GB, free: 8.004 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.001495/0.808, allocations: 0.9403 MB / 0.975 GB, free: 7.309 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.003696/0.8117, allocations: 3.357 MB / 0.9783 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.8117, allocations: 0 / 0.9783 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.016e-06/0.8117, allocations: 0 / 0.9783 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.43e-05/0.8118, allocations: 3.938 kB / 0.9783 GB, free: 3.934 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 419 * Number of variables: 419 Notification: Performance of Generate backend data structure: time 0.004002/0.8158, allocations: 1.937 MB / 0.9802 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.8159, allocations: 15.97 kB / 0.9802 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005411/0.8213, allocations: 0.8883 MB / 0.9811 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002225/0.8235, allocations: 1.114 MB / 0.9821 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-05/0.8237, allocations: 111.3 kB / 0.9823 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003403/0.824, allocations: 144.3 kB / 0.9824 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005135/0.8292, allocations: 3.017 MB / 0.9853 GB, free: 12.51 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.543e-05/0.8292, allocations: 7.938 kB / 0.9853 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001872/0.8294, allocations: 63.97 kB / 0.9854 GB, free: 12.44 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002238/0.8296, allocations: 175 kB / 0.9856 GB, free: 12.27 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004081/0.8337, allocations: 2.604 MB / 0.9881 GB, free: 9.656 MB / 0.7481 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01674/0.8505, allocations: 13.56 MB / 1.001 GB, free: 10.99 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002057/0.8526, allocations: 1.295 MB / 1.003 GB, free: 9.68 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001404/0.854, allocations: 1.06 MB / 1.004 GB, free: 8.621 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 7.772e-05/0.8541, allocations: 8.656 kB / 1.004 GB, free: 8.609 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.8541, allocations: 39.22 kB / 1.004 GB, free: 8.562 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=82): time 4.419e-06/0.8541, allocations: 0 / 1.004 GB, free: 8.562 MB / 0.7637 GB Notification: Performance of matching and sorting (n=139): time 0.06766/0.9218, allocations: 19.38 MB / 1.023 GB, free: 5.035 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.9219, allocations: 68.72 kB / 1.023 GB, free: 4.957 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001245/0.9231, allocations: 0.9183 MB / 1.024 GB, free: 4.023 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0001897/0.9233, allocations: 49.7 kB / 1.024 GB, free: 3.969 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004958/0.9238, allocations: 0.7283 MB / 1.024 GB, free: 3.227 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006033/0.9245, allocations: 489 kB / 1.025 GB, free: 2.742 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006759/0.9251, allocations: 295.4 kB / 1.025 GB, free: 2.449 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001503/0.9253, allocations: 353.9 kB / 1.025 GB, free: 2.098 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001895/0.9272, allocations: 1.335 MB / 1.027 GB, free: 0.7617 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002093/0.9293, allocations: 1.662 MB / 1.028 GB, free: 14.99 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004043/0.9334, allocations: 3.09 MB / 1.031 GB, free: 11.78 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.9334, allocations: 0 / 1.031 GB, free: 11.78 MB / 0.795 GB Notification: Performance of matching and sorting (n=191) (initialization): time 0.01144/0.9448, allocations: 5.638 MB / 1.037 GB, free: 6.113 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.874e-05/0.9449, allocations: 8 kB / 1.037 GB, free: 6.105 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.006e-05/0.9449, allocations: 12.59 kB / 1.037 GB, free: 6.094 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008798/0.9537, allocations: 2.719 MB / 1.04 GB, free: 3.363 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008247/0.9546, allocations: 195.6 kB / 1.04 GB, free: 3.172 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03342/0.988, allocations: 23.34 MB / 1.063 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00155/0.9896, allocations: 99.94 kB / 1.063 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001613/0.9898, allocations: 56 kB / 1.063 GB, free: 11.12 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (99): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(6,12,100.0%), (6,12,100.0%), (6,24,100.0%), (6,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001163/0.9909, allocations: 0.7277 MB / 1.063 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002793/0.9912, allocations: 126.5 kB / 1.064 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01115/1.002, allocations: 5.388 MB / 1.069 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.781e-05/1.002, allocations: 20 kB / 1.069 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.98e-05/1.002, allocations: 16 kB / 1.069 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.82e-05/1.002, allocations: 7.969 kB / 1.069 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01627/1.019, allocations: 8.637 MB / 1.077 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.296e-05/1.019, allocations: 4 kB / 1.077 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000462/1.019, allocations: 115.8 kB / 1.077 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008645/1.028, allocations: 2.547 MB / 1.08 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001703/1.028, allocations: 27.94 kB / 1.08 GB, free: 9.336 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03047/1.059, allocations: 20.9 MB / 1.1 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/1.059, allocations: 7.938 kB / 1.1 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01058/1.069, allocations: 5.134 MB / 1.105 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009499/1.07, allocations: 475.5 kB / 1.106 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002206/1.07, allocations: 31.98 kB / 1.106 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000844/1.071, allocations: 71.91 kB / 1.106 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006037/1.072, allocations: 129 kB / 1.106 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/1.072, allocations: 40 kB / 1.106 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0008787/1.073, allocations: 0.6395 MB / 1.107 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.71e-07/1.073, allocations: 0 / 1.107 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.003202/1.076, allocations: 0.7227 MB / 1.107 GB, free: 12.55 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (62): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(6,12,100.0%), (6,24,100.0%), (6,6,100.0%), (10,14,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003571/1.077, allocations: 137.6 kB / 1.107 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.007539/1.084, allocations: 4.153 MB / 1.112 GB, free: 8.211 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/1.084, allocations: 0 / 1.112 GB, free: 8.211 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.005163/1.089, allocations: 2.658 MB / 1.114 GB, free: 5.496 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001564/1.091, allocations: 204.4 kB / 1.114 GB, free: 5.293 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007586/1.098, allocations: 4.674 MB / 1.119 GB, free: 0.5664 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001605/1.1, allocations: 1.704 MB / 1.121 GB, free: 14.83 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0008688/1.101, allocations: 329.4 kB / 1.121 GB, free: 14.51 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/1.101, allocations: 55.44 kB / 1.121 GB, free: 14.45 MB / 0.8887 GB Notification: Performance of SimCode: time 7.32e-07/1.101, allocations: 0 / 1.121 GB, free: 14.45 MB / 0.8887 GB Notification: Performance of Templates: time 0.06051/1.162, allocations: 38.21 MB / 1.158 GB, free: 8.391 MB / 0.92 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches