Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.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.ACLineMatrix_RLC_N,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_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N,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_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00194/0.00194, allocations: 104.5 kB / 16.35 MB, free: 5.828 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.001852/0.001852, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.345/1.345, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.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.366/2.366, allocations: 390.3 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 62.14 kB / 0.814 GB, free: 32.57 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2974, allocations: 140.4 MB / 0.9511 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N): time 0.0127/0.3102, allocations: 10.1 MB / 0.961 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.005674/0.3159, allocations: 3.174 MB / 0.9641 GB, free: 10.75 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009647/0.3169, allocations: 43.81 kB / 0.9641 GB, free: 10.7 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002055/0.319, allocations: 0.5904 MB / 0.9647 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.00204/0.321, allocations: 0.7427 MB / 0.9654 GB, free: 9.367 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.001809/0.3228, allocations: 0.733 MB / 0.9661 GB, free: 8.633 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.003897/0.3268, allocations: 2.992 MB / 0.9691 GB, free: 5.633 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00317/0.3299, allocations: 2.586 MB / 0.9716 GB, free: 3.004 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002007/0.332, allocations: 1.254 MB / 0.9728 GB, free: 1.746 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002216/0.3342, allocations: 1.566 MB / 0.9743 GB, free: 180 kB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0004099/0.3346, allocations: 236 kB / 0.9746 GB, free: 15.94 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001025/0.3357, allocations: 0.4993 MB / 0.9751 GB, free: 15.45 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001019/0.3367, allocations: 1.076 MB / 0.9761 GB, free: 14.37 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001167/0.3379, allocations: 1.109 MB / 0.9772 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.003365/0.3412, allocations: 3.693 MB / 0.9808 GB, free: 9.551 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.3413, allocations: 0 / 0.9808 GB, free: 9.551 MB / 0.7637 GB Notification: Performance of FrontEnd: time 3.106e-06/0.3413, allocations: 4 kB / 0.9808 GB, free: 9.547 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.606e-05/0.3414, allocations: 0 / 0.9808 GB, free: 9.547 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 439 * Number of variables: 439 Notification: Performance of Generate backend data structure: time 0.003969/0.3453, allocations: 2.138 MB / 0.9829 GB, free: 7.352 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.3454, allocations: 12.03 kB / 0.9829 GB, free: 7.34 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008356/0.3537, allocations: 1.321 MB / 0.9842 GB, free: 6.016 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003049/0.3568, allocations: 1.294 MB / 0.9855 GB, free: 4.676 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.276e-05/0.3569, allocations: 115.4 kB / 0.9856 GB, free: 4.562 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003687/0.3573, allocations: 144.3 kB / 0.9857 GB, free: 4.422 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005038/0.3623, allocations: 3.448 MB / 0.9891 GB, free: 0.875 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.855e-05/0.3624, allocations: 7.938 kB / 0.9891 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002183/0.3626, allocations: 59.97 kB / 0.9891 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002378/0.3629, allocations: 207.1 kB / 0.9893 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004612/0.3675, allocations: 3.12 MB / 0.9924 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01689/0.3844, allocations: 13.54 MB / 1.006 GB, free: 15.06 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002398/0.3868, allocations: 1.728 MB / 1.007 GB, free: 13.32 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001925/0.3888, allocations: 1.44 MB / 1.009 GB, free: 11.88 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 9.751e-05/0.3889, allocations: 9 kB / 1.009 GB, free: 11.88 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.3889, allocations: 51.48 kB / 1.009 GB, free: 11.81 MB / 0.795 GB Notification: Performance of pre-optimization done (n=104): time 2.906e-06/0.3889, allocations: 0 / 1.009 GB, free: 11.81 MB / 0.795 GB Notification: Performance of matching and sorting (n=183): time 0.1314/0.5204, allocations: 36.66 MB / 1.045 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.823e-05/0.5205, allocations: 77.39 kB / 1.045 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001513/0.522, allocations: 1.046 MB / 1.046 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0003169/0.5223, allocations: 57.7 kB / 1.046 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005624/0.5229, allocations: 0.7912 MB / 1.046 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000627/0.5235, allocations: 0.6239 MB / 1.047 GB, free: 4.348 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007301/0.5243, allocations: 367.3 kB / 1.047 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001102/0.5244, allocations: 305.1 kB / 1.048 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002723/0.5271, allocations: 1.928 MB / 1.05 GB, free: 1.75 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002886/0.53, allocations: 2.293 MB / 1.052 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00556/0.5356, allocations: 4.387 MB / 1.056 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.337e-06/0.5356, allocations: 4 kB / 1.056 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.01921/0.5548, allocations: 9.022 MB / 1.065 GB, free: 1.77 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.929e-05/0.5549, allocations: 12.59 kB / 1.065 GB, free: 1.758 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.671e-05/0.5549, allocations: 16 kB / 1.065 GB, free: 1.742 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01643/0.5714, allocations: 4.971 MB / 1.07 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.5724, allocations: 191.6 kB / 1.07 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5736/1.146, allocations: 38.9 MB / 1.108 GB, free: 111.8 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002007/1.148, allocations: 102.5 kB / 1.108 GB, free: 111.8 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002269/1.148, allocations: 64.7 kB / 1.108 GB, free: 111.8 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (105): * Single equations (assignments): 101 * 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 {(8,16,100.0%), (8,16,100.0%), (8,38,100.0%), (8,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001519/1.15, allocations: 0.8041 MB / 1.109 GB, free: 111.4 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004139/1.15, allocations: 142.5 kB / 1.109 GB, free: 111.3 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01968/1.17, allocations: 8.894 MB / 1.118 GB, free: 108.7 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-05/1.17, allocations: 17.56 kB / 1.118 GB, free: 108.7 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001007/1.17, allocations: 29.66 kB / 1.118 GB, free: 108.7 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.2e-05/1.17, allocations: 8.75 kB / 1.118 GB, free: 108.7 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02577/1.196, allocations: 13.27 MB / 1.131 GB, free: 103.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-05/1.196, allocations: 3.844 kB / 1.131 GB, free: 103.9 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005082/1.197, allocations: 121.2 kB / 1.131 GB, free: 103.9 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0145/1.211, allocations: 4.761 MB / 1.136 GB, free: 101.5 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003453/1.211, allocations: 35.84 kB / 1.136 GB, free: 101.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0419/1.253, allocations: 34.82 MB / 1.17 GB, free: 71.55 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-05/1.253, allocations: 21.17 kB / 1.17 GB, free: 71.54 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01584/1.269, allocations: 8.402 MB / 1.178 GB, free: 63.04 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001814/1.271, allocations: 0.6124 MB / 1.178 GB, free: 62.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003073/1.271, allocations: 32 kB / 1.178 GB, free: 62.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/1.273, allocations: 91.89 kB / 1.179 GB, free: 62.29 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008641/1.274, allocations: 165.6 kB / 1.179 GB, free: 62.12 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001452/1.274, allocations: 51.98 kB / 1.179 GB, free: 62.07 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0008154/1.274, allocations: 0.7343 MB / 1.179 GB, free: 61.33 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.71e-07/1.274, allocations: 0 / 1.179 GB, free: 61.33 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.003236/1.278, allocations: 1.008 MB / 1.18 GB, free: 60.32 MB / 0.8575 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 (66): * Single equations (assignments): 62 * 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 {(8,16,100.0%), (8,38,100.0%), (8,8,100.0%), (14,24,80.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003229/1.278, allocations: 153.8 kB / 1.181 GB, free: 60.16 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00852/1.287, allocations: 5.869 MB / 1.186 GB, free: 54.27 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/1.287, allocations: 4 kB / 1.186 GB, free: 54.26 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.006612/1.293, allocations: 3.831 MB / 1.19 GB, free: 50.38 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001529/1.295, allocations: 249.6 kB / 1.19 GB, free: 50.15 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007329/1.302, allocations: 4.943 MB / 1.195 GB, free: 45.2 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001392/1.304, allocations: 1.859 MB / 1.197 GB, free: 43.3 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0007447/1.304, allocations: 356 kB / 1.197 GB, free: 42.95 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/1.305, allocations: 67.36 kB / 1.197 GB, free: 42.89 MB / 0.8575 GB Notification: Performance of SimCode: time 1.654e-06/1.305, allocations: 0 / 1.197 GB, free: 42.89 MB / 0.8575 GB Notification: Performance of Templates: time 0.07761/1.382, allocations: 59.12 MB / 1.255 GB, free: 15.94 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches