Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 107 kB / 16.36 MB, free: 6.336 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.001323/0.001324, allocations: 195.3 kB / 17.29 MB, free: 5.883 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.456/1.456, allocations: 222.9 MB / 241 MB, free: 15.17 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.33/2.33, allocations: 390.3 MB / 0.6655 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 62.91 kB / 0.814 GB, free: 32.68 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3207, allocations: 140.4 MB / 0.9511 GB, free: 8.016 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.02139/0.3421, allocations: 14.76 MB / 0.9656 GB, free: 9.195 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01793/0.3601, allocations: 10.36 MB / 0.9757 GB, free: 14.8 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002027/0.3622, allocations: 55.62 kB / 0.9757 GB, free: 14.75 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.005053/0.3674, allocations: 1.695 MB / 0.9774 GB, free: 13.05 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.00689/0.3743, allocations: 1.809 MB / 0.9791 GB, free: 11.24 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0026/0.3769, allocations: 0.7562 MB / 0.9799 GB, free: 10.48 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.005058/0.382, allocations: 2.754 MB / 0.9826 GB, free: 7.723 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002888/0.3849, allocations: 1.411 MB / 0.9839 GB, free: 6.277 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003361/0.3883, allocations: 1.504 MB / 0.9854 GB, free: 4.77 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003513/0.3918, allocations: 1.164 MB / 0.9866 GB, free: 3.602 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0008789/0.3927, allocations: 160 kB / 0.9867 GB, free: 3.445 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002468/0.3952, allocations: 0.7877 MB / 0.9875 GB, free: 2.656 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001098/0.3963, allocations: 0.6076 MB / 0.9881 GB, free: 2.047 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.002346/0.3987, allocations: 0.9638 MB / 0.989 GB, free: 1.078 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.004636/0.4033, allocations: 2.761 MB / 0.9917 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 9.478e-06/0.4034, allocations: 0 / 0.9917 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of FrontEnd: time 5.14e-06/0.4034, allocations: 0 / 0.9917 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001264/0.4035, allocations: 3.938 kB / 0.9917 GB, free: 14.3 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.006136/0.4097, allocations: 2.17 MB / 0.9938 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/0.4097, allocations: 8.031 kB / 0.9938 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01118/0.4209, allocations: 2.108 MB / 0.9959 GB, free: 9.957 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003613/0.4246, allocations: 1.307 MB / 0.9972 GB, free: 8.594 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.4247, allocations: 82.69 kB / 0.9973 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005839/0.4253, allocations: 124.1 kB / 0.9974 GB, free: 8.391 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006873/0.4322, allocations: 2.667 MB / 1 GB, free: 5.574 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.516e-05/0.4323, allocations: 11.94 kB / 1 GB, free: 5.562 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003072/0.4326, allocations: 51.97 kB / 1 GB, free: 5.512 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006186/0.4333, allocations: 194.1 kB / 1 GB, free: 5.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007546/0.4408, allocations: 2.791 MB / 1.003 GB, free: 2.52 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0173/0.4582, allocations: 10.47 MB / 1.013 GB, free: 7.465 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006151/0.4644, allocations: 2.332 MB / 1.015 GB, free: 5.109 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003021/0.4674, allocations: 1.28 MB / 1.017 GB, free: 3.828 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001178/0.4676, allocations: 9 kB / 1.017 GB, free: 3.816 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/0.4676, allocations: 47.55 kB / 1.017 GB, free: 3.762 MB / 0.795 GB Notification: Performance of pre-optimization done (n=89): time 2.705e-06/0.4676, allocations: 0 / 1.017 GB, free: 3.762 MB / 0.795 GB Notification: Performance of matching and sorting (n=153): time 0.05824/0.5259, allocations: 16.48 MB / 1.033 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.984e-05/0.526, allocations: 72.72 kB / 1.033 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002073/0.5281, allocations: 1.172 MB / 1.034 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0003335/0.5284, allocations: 49.7 kB / 1.034 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006556/0.5291, allocations: 0.7397 MB / 1.035 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007549/0.5298, allocations: 0.5121 MB / 1.035 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007088/0.5306, allocations: 287.4 kB / 1.036 GB, free: 256 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.5307, allocations: 305.1 kB / 1.036 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003504/0.5342, allocations: 1.518 MB / 1.037 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003622/0.5379, allocations: 1.772 MB / 1.039 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007134/0.545, allocations: 3.373 MB / 1.042 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.195e-05/0.5451, allocations: 4 kB / 1.042 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.0138/0.5589, allocations: 5.277 MB / 1.048 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.97e-05/0.5589, allocations: 8 kB / 1.048 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.299e-05/0.559, allocations: 11.94 kB / 1.048 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007059/0.566, allocations: 1.882 MB / 1.049 GB, free: 1.848 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001913/0.568, allocations: 423.3 kB / 1.05 GB, free: 1.434 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03152/0.5995, allocations: 24.14 MB / 1.073 GB, free: 8.168 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002737/0.6023, allocations: 303.5 kB / 1.074 GB, free: 7.871 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003732/0.6027, allocations: 63.97 kB / 1.074 GB, free: 7.809 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0012/0.6039, allocations: 469.5 kB / 1.074 GB, free: 7.34 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005882/0.6045, allocations: 173.9 kB / 1.074 GB, free: 7.168 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01338/0.6179, allocations: 5.328 MB / 1.08 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.541e-05/0.618, allocations: 16 kB / 1.08 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.535e-05/0.618, allocations: 16 kB / 1.08 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.107e-05/0.6181, allocations: 7.969 kB / 1.08 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5877/1.206, allocations: 7.42 MB / 1.087 GB, free: 123.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-05/1.206, allocations: 3.125 kB / 1.087 GB, free: 123.2 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001789/1.208, allocations: 350.1 kB / 1.087 GB, free: 123.2 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006974/1.215, allocations: 1.705 MB / 1.089 GB, free: 123.2 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003265/1.215, allocations: 44.47 kB / 1.089 GB, free: 123.2 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02852/1.244, allocations: 23.3 MB / 1.112 GB, free: 107.1 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/1.244, allocations: 4.219 kB / 1.112 GB, free: 107.1 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01454/1.258, allocations: 4.889 MB / 1.116 GB, free: 105.4 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00154/1.26, allocations: 497.6 kB / 1.117 GB, free: 105.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003719/1.26, allocations: 28.09 kB / 1.117 GB, free: 105.1 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002243/1.262, allocations: 317.1 kB / 1.117 GB, free: 105.1 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007165/1.263, allocations: 162.6 kB / 1.117 GB, free: 105.1 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000186/1.263, allocations: 51.89 kB / 1.117 GB, free: 105.1 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001265/1.265, allocations: 0.7889 MB / 1.118 GB, free: 104.8 MB / 0.8575 GB Notification: Performance of sort global known variables: time 4.3e-07/1.265, allocations: 0 / 1.118 GB, free: 104.8 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002812/1.267, allocations: 0.6583 MB / 1.119 GB, free: 104.7 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004287/1.268, allocations: 149.2 kB / 1.119 GB, free: 104.6 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.01098/1.279, allocations: 5.149 MB / 1.124 GB, free: 102.3 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/1.279, allocations: 5 kB / 1.124 GB, free: 102.3 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.007053/1.286, allocations: 3.355 MB / 1.127 GB, free: 100.6 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003323/1.289, allocations: 0.5601 MB / 1.128 GB, free: 100.5 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00959/1.299, allocations: 4.287 MB / 1.132 GB, free: 98.71 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001338/1.3, allocations: 1.565 MB / 1.134 GB, free: 97.88 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001788/1.302, allocations: 383.8 kB / 1.134 GB, free: 97.74 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004142/1.303, allocations: 109.2 kB / 1.134 GB, free: 97.73 MB / 0.8575 GB Notification: Performance of SimCode: time 1.503e-06/1.303, allocations: 0 / 1.134 GB, free: 97.73 MB / 0.8575 GB Notification: Performance of Templates: time 0.05961/1.362, allocations: 44.87 MB / 1.178 GB, free: 62.41 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches