Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.ACLine,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.ACLine") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,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.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001568/0.001568, 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.001988/0.001988, allocations: 195.7 kB / 16.14 MB, free: 6.711 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.576/1.576, allocations: 222.9 MB / 239.8 MB, free: 4.551 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.662/2.662, allocations: 390.2 MB / 0.6642 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 67.91 kB / 0.8119 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8442/0.8459, allocations: 140.4 MB / 0.9489 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.02063/0.8666, allocations: 13.97 MB / 0.9626 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0233/0.8899, allocations: 9.388 MB / 0.9717 GB, free: 7.004 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002931/0.8929, allocations: 50.28 kB / 0.9718 GB, free: 6.984 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.006466/0.8994, allocations: 1.572 MB / 0.9733 GB, free: 5.785 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.008126/0.9076, allocations: 1.405 MB / 0.9747 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.003707/0.9113, allocations: 0.6842 MB / 0.9754 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.006151/0.9175, allocations: 3.175 MB / 0.9785 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002714/0.9202, allocations: 1.353 MB / 0.9798 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002249/0.9225, allocations: 0.9319 MB / 0.9807 GB, free: 1.16 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002519/0.925, allocations: 1.138 MB / 0.9818 GB, free: 332 kB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0004573/0.9255, allocations: 100 kB / 0.9819 GB, free: 232 kB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002452/0.928, allocations: 0.8929 MB / 0.9828 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0009239/0.9289, allocations: 0.549 MB / 0.9833 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.002017/0.9309, allocations: 0.8703 MB / 0.9842 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.004144/0.9351, allocations: 2.733 MB / 0.9868 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.9351, allocations: 0 / 0.9868 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.142e-06/0.9351, allocations: 0 / 0.9868 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 9.341e-05/0.9352, allocations: 0 / 0.9868 GB, free: 11.16 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.005373/0.9406, allocations: 2.135 MB / 0.9889 GB, free: 8.973 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.9407, allocations: 8.031 kB / 0.9889 GB, free: 8.965 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01101/0.9517, allocations: 2.089 MB / 0.991 GB, free: 6.871 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0029/0.9546, allocations: 1.201 MB / 0.9921 GB, free: 5.613 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.412e-05/0.9547, allocations: 90.73 kB / 0.9922 GB, free: 5.523 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005199/0.9553, allocations: 124.1 kB / 0.9923 GB, free: 5.402 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006679/0.962, allocations: 2.674 MB / 0.9949 GB, free: 2.578 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.419e-05/0.962, allocations: 7.906 kB / 0.995 GB, free: 2.57 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002387/0.9623, allocations: 59.97 kB / 0.995 GB, free: 2.512 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006005/0.9629, allocations: 190.1 kB / 0.9952 GB, free: 2.324 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007572/0.9705, allocations: 2.799 MB / 0.9979 GB, free: 15.52 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01836/0.9889, allocations: 10.49 MB / 1.008 GB, free: 4.441 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006583/0.9955, allocations: 2.533 MB / 1.011 GB, free: 1.844 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003092/0.9986, allocations: 1.284 MB / 1.012 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 9.125e-05/0.9987, allocations: 16.92 kB / 1.012 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.65e-05/0.9988, allocations: 43.56 kB / 1.012 GB, free: 500 kB / 0.7637 GB Notification: Performance of pre-optimization done (n=89): time 2.765e-06/0.9988, allocations: 0 / 1.012 GB, free: 500 kB / 0.7637 GB Notification: Performance of matching and sorting (n=131): time 0.04642/1.045, allocations: 13.34 MB / 1.025 GB, free: 2.926 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.503e-05/1.045, allocations: 64.72 kB / 1.025 GB, free: 2.848 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002067/1.047, allocations: 1.121 MB / 1.026 GB, free: 1.711 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.00026/1.048, allocations: 45.7 kB / 1.026 GB, free: 1.66 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006451/1.048, allocations: 0.7155 MB / 1.027 GB, free: 0.9375 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006564/1.049, allocations: 449.5 kB / 1.027 GB, free: 0.4922 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006215/1.05, allocations: 267.4 kB / 1.028 GB, free: 228 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002262/1.05, allocations: 365.9 kB / 1.028 GB, free: 15.86 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003294/1.053, allocations: 1.335 MB / 1.029 GB, free: 14.52 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003446/1.057, allocations: 1.6 MB / 1.031 GB, free: 12.83 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006549/1.063, allocations: 2.998 MB / 1.034 GB, free: 9.734 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/1.063, allocations: 4 kB / 1.034 GB, free: 9.73 MB / 0.795 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01138/1.075, allocations: 4.438 MB / 1.038 GB, free: 5.238 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.181e-05/1.075, allocations: 8 kB / 1.038 GB, free: 5.23 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/1.075, allocations: 8 kB / 1.038 GB, free: 5.223 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005561/1.08, allocations: 1.44 MB / 1.039 GB, free: 3.742 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002069/1.082, allocations: 431.2 kB / 1.04 GB, free: 3.32 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02728/1.11, allocations: 24.56 MB / 1.064 GB, free: 9.004 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00303/1.113, allocations: 303.6 kB / 1.064 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003445/1.113, allocations: 67.89 kB / 1.064 GB, free: 8.641 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001274/1.114, allocations: 442.8 kB / 1.065 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006051/1.115, allocations: 162.1 kB / 1.065 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01165/1.127, allocations: 4.453 MB / 1.069 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.59e-05/1.127, allocations: 16 kB / 1.069 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-05/1.127, allocations: 12 kB / 1.069 GB, free: 3.504 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.119e-05/1.127, allocations: 7.969 kB / 1.069 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01469/1.142, allocations: 6.782 MB / 1.076 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/1.142, allocations: 4.188 kB / 1.076 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001697/1.143, allocations: 375.4 kB / 1.076 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005113/1.148, allocations: 1.31 MB / 1.077 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002636/1.149, allocations: 35.97 kB / 1.077 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02586/1.175, allocations: 23.52 MB / 1.1 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/1.175, allocations: 0 / 1.1 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01118/1.186, allocations: 4.208 MB / 1.105 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001165/1.187, allocations: 458.9 kB / 1.105 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004943/1.188, allocations: 31.92 kB / 1.105 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002232/1.19, allocations: 303.5 kB / 1.105 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005599/1.19, allocations: 128.7 kB / 1.105 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000157/1.191, allocations: 47.97 kB / 1.105 GB, free: 12.26 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.00133/1.192, allocations: 0.7487 MB / 1.106 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.61e-07/1.192, allocations: 0 / 1.106 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.00257/1.194, allocations: 0.5781 MB / 1.107 GB, free: 10.93 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004003/1.195, allocations: 142.4 kB / 1.107 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.011/1.206, allocations: 5.115 MB / 1.112 GB, free: 5.5 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 7.323e-06/1.206, allocations: 0 / 1.112 GB, free: 5.5 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.00697/1.213, allocations: 3.488 MB / 1.115 GB, free: 1.844 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002915/1.216, allocations: 0.5047 MB / 1.116 GB, free: 1.344 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009123/1.225, allocations: 4.647 MB / 1.12 GB, free: 12.64 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001546/1.227, allocations: 1.473 MB / 1.122 GB, free: 11.14 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001871/1.228, allocations: 429.6 kB / 1.122 GB, free: 10.71 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004558/1.229, allocations: 111.4 kB / 1.122 GB, free: 10.61 MB / 0.8887 GB Notification: Performance of SimCode: time 9.02e-07/1.229, allocations: 0 / 1.122 GB, free: 10.61 MB / 0.8887 GB Notification: Performance of Templates: time 0.0644/1.293, allocations: 37.73 MB / 1.159 GB, free: 5.285 MB / 0.92 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches