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.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.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.001675/0.001675, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002328/0.002328, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.457/1.457, allocations: 222.9 MB / 239.9 MB, free: 4.523 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.415/2.415, allocations: 390.2 MB / 0.6643 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 59.91 kB / 0.812 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7661/0.7677, allocations: 140.4 MB / 0.9491 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.02362/0.7913, allocations: 14.7 MB / 0.9635 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01941/0.8108, allocations: 10.24 MB / 0.9735 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002477/0.8134, allocations: 54.84 kB / 0.9735 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.005768/0.8192, allocations: 1.585 MB / 0.9751 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.007932/0.8272, allocations: 1.624 MB / 0.9766 GB, free: 3.281 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.00268/0.8299, allocations: 0.6887 MB / 0.9773 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.005905/0.8358, allocations: 2.753 MB / 0.98 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00374/0.8395, allocations: 1.597 MB / 0.9816 GB, free: 252 kB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004635/0.8442, allocations: 1.516 MB / 0.983 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003766/0.848, allocations: 1.206 MB / 0.9842 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0009979/0.8491, allocations: 160 kB / 0.9844 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003233/0.8523, allocations: 0.7916 MB / 0.9852 GB, free: 13.03 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.001946/0.8543, allocations: 0.5998 MB / 0.9857 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.003938/0.8583, allocations: 0.96 MB / 0.9867 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.007505/0.8658, allocations: 2.788 MB / 0.9894 GB, free: 8.664 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.8658, allocations: 0 / 0.9894 GB, free: 8.664 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.803e-06/0.8659, allocations: 3.938 kB / 0.9894 GB, free: 8.66 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 0.0001259/0.866, allocations: 0 / 0.9894 GB, free: 8.66 MB / 0.7481 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.007116/0.8731, allocations: 2.17 MB / 0.9915 GB, free: 6.434 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.8732, allocations: 8.031 kB / 0.9915 GB, free: 6.426 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01243/0.8856, allocations: 2.105 MB / 0.9936 GB, free: 4.316 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003472/0.8891, allocations: 1.221 MB / 0.9948 GB, free: 3.039 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001136/0.8893, allocations: 86.69 kB / 0.9949 GB, free: 2.953 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005996/0.8899, allocations: 120 kB / 0.995 GB, free: 2.836 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00696/0.8968, allocations: 2.666 MB / 0.9976 GB, free: 20 kB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.307e-05/0.8969, allocations: 15.94 kB / 0.9976 GB, free: 4 kB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002912/0.8972, allocations: 52.03 kB / 0.9976 GB, free: 15.95 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006845/0.8979, allocations: 194.1 kB / 0.9978 GB, free: 15.76 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008161/0.9061, allocations: 2.787 MB / 1.001 GB, free: 12.96 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01781/0.924, allocations: 10.51 MB / 1.011 GB, free: 1.871 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006602/0.9306, allocations: 2.336 MB / 1.013 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003181/0.9338, allocations: 1.28 MB / 1.014 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.585e-05/0.9339, allocations: 9 kB / 1.014 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.643e-05/0.934, allocations: 47.5 kB / 1.014 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=89): time 2.985e-06/0.934, allocations: 4 kB / 1.014 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=153): time 0.0621/0.9961, allocations: 16.47 MB / 1.03 GB, free: 13.53 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.685e-05/0.9962, allocations: 68.72 kB / 1.031 GB, free: 13.45 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002292/0.9986, allocations: 1.18 MB / 1.032 GB, free: 12.26 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.000371/0.9989, allocations: 49.7 kB / 1.032 GB, free: 12.2 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006847/0.9996, allocations: 0.7475 MB / 1.032 GB, free: 11.45 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008273/1, allocations: 0.516 MB / 1.033 GB, free: 10.93 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007729/1.001, allocations: 287.4 kB / 1.033 GB, free: 10.64 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001928/1.001, allocations: 305.1 kB / 1.034 GB, free: 10.34 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004083/1.006, allocations: 1.507 MB / 1.035 GB, free: 8.832 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004724/1.01, allocations: 1.784 MB / 1.037 GB, free: 6.953 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008445/1.019, allocations: 3.365 MB / 1.04 GB, free: 3.488 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-05/1.019, allocations: 4 kB / 1.04 GB, free: 3.484 MB / 0.795 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01697/1.036, allocations: 5.277 MB / 1.045 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.921e-05/1.036, allocations: 12.19 kB / 1.045 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.987e-05/1.036, allocations: 8 kB / 1.045 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007545/1.044, allocations: 1.896 MB / 1.047 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002123/1.046, allocations: 411.3 kB / 1.047 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03329/1.079, allocations: 24.15 MB / 1.071 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002985/1.082, allocations: 307.5 kB / 1.071 GB, free: 2.258 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003918/1.083, allocations: 63.97 kB / 1.071 GB, free: 2.195 MB / 0.8262 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.001233/1.084, allocations: 469.5 kB / 1.072 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006017/1.084, allocations: 181.8 kB / 1.072 GB, free: 1.547 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01498/1.099, allocations: 5.316 MB / 1.077 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.748e-05/1.099, allocations: 16 kB / 1.077 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.618e-05/1.1, allocations: 16 kB / 1.077 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.633e-05/1.1, allocations: 7.969 kB / 1.077 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01969/1.119, allocations: 7.433 MB / 1.085 GB, free: 4.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.23e-05/1.119, allocations: 0 / 1.085 GB, free: 4.59 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001859/1.121, allocations: 351.7 kB / 1.085 GB, free: 4.246 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006746/1.128, allocations: 1.729 MB / 1.087 GB, free: 2.496 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003782/1.128, allocations: 39.97 kB / 1.087 GB, free: 2.457 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03063/1.159, allocations: 23.32 MB / 1.109 GB, free: 10.02 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.972e-06/1.159, allocations: 3.938 kB / 1.109 GB, free: 10.02 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01383/1.173, allocations: 4.893 MB / 1.114 GB, free: 5.039 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/1.174, allocations: 498.8 kB / 1.115 GB, free: 4.531 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006121/1.175, allocations: 24 kB / 1.115 GB, free: 4.508 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002702/1.178, allocations: 315.5 kB / 1.115 GB, free: 4.199 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007753/1.178, allocations: 156.9 kB / 1.115 GB, free: 4.047 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002735/1.179, allocations: 55.97 kB / 1.115 GB, free: 3.992 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001661/1.18, allocations: 0.7899 MB / 1.116 GB, free: 3.203 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.7e-07/1.18, allocations: 0 / 1.116 GB, free: 3.203 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002851/1.183, allocations: 0.6523 MB / 1.117 GB, free: 2.551 MB / 0.8731 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.0004856/1.184, allocations: 143.8 kB / 1.117 GB, free: 2.402 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.01313/1.197, allocations: 5.428 MB / 1.122 GB, free: 12.87 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/1.197, allocations: 0 / 1.122 GB, free: 12.87 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.008055/1.205, allocations: 3.351 MB / 1.125 GB, free: 9.414 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003749/1.209, allocations: 0.5648 MB / 1.126 GB, free: 8.871 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01246/1.221, allocations: 5.003 MB / 1.131 GB, free: 3.812 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002215/1.224, allocations: 1.568 MB / 1.132 GB, free: 2.207 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.002305/1.226, allocations: 382.4 kB / 1.133 GB, free: 1.828 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005221/1.226, allocations: 107.4 kB / 1.133 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of SimCode: time 3.506e-06/1.226, allocations: 0 / 1.133 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of Templates: time 0.08281/1.309, allocations: 45.1 MB / 1.177 GB, free: 5.102 MB / 0.9356 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 -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/jenkins/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