Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 98.09 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 184 kB / 16.92 MB, free: 6.895 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.446/1.446, allocations: 223.3 MB / 241 MB, free: 5.246 MB / 190.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.535/2.535, allocations: 390.9 MB / 0.667 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004265/0.0004261, allocations: 11.98 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7497/0.7502, allocations: 142.4 MB / 0.9557 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.004721/0.7549, allocations: 4.036 MB / 0.9597 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004472/0.7594, allocations: 3.206 MB / 0.9628 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003046/0.7598, allocations: 9.906 kB / 0.9628 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0006344/0.7604, allocations: 165.6 kB / 0.963 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001111/0.7616, allocations: 364.2 kB / 0.9633 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006661/0.7622, allocations: 233.5 kB / 0.9635 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0009442/0.7632, allocations: 0.7995 MB / 0.9643 GB, free: 1.387 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001313/0.7645, allocations: 0.8273 MB / 0.9651 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005082/0.765, allocations: 223.9 kB / 0.9653 GB, free: 0.7344 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004256/0.7655, allocations: 253.3 kB / 0.9656 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.405e-05/0.7655, allocations: 16.78 kB / 0.9656 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006659/0.7662, allocations: 320.6 kB / 0.9659 GB, free: 436 kB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001493/0.7664, allocations: 135.8 kB / 0.966 GB, free: 352 kB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002167/0.7666, allocations: 217.2 kB / 0.9662 GB, free: 196 kB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007592/0.7673, allocations: 0.6284 MB / 0.9668 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.7674, allocations: 0 / 0.9668 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.773e-06/0.7674, allocations: 0 / 0.9668 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.677e-06/0.7674, allocations: 1.031 kB / 0.9668 GB, free: 15.77 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001342/0.7687, allocations: 0.6987 MB / 0.9675 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.7688, allocations: 8.969 kB / 0.9675 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003184/0.772, allocations: 0.6869 MB / 0.9682 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007559/0.7728, allocations: 439.6 kB / 0.9686 GB, free: 14.47 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.481e-05/0.7728, allocations: 24.97 kB / 0.9686 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.461e-05/0.7729, allocations: 40.95 kB / 0.9687 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001874/0.7748, allocations: 0.7859 MB / 0.9695 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.7748, allocations: 1 kB / 0.9695 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.013e-05/0.7749, allocations: 23.19 kB / 0.9695 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001225/0.775, allocations: 36.84 kB / 0.9695 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002259/0.7773, allocations: 0.8956 MB / 0.9704 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004757/0.782, allocations: 2.821 MB / 0.9731 GB, free: 11.06 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001896/0.784, allocations: 0.5282 MB / 0.9737 GB, free: 10.79 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007734/0.7848, allocations: 271.7 kB / 0.9739 GB, free: 10.66 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001287/0.7849, allocations: 87.09 kB / 0.974 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.252e-05/0.785, allocations: 36.56 kB / 0.974 GB, free: 10.52 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 2.224e-06/0.785, allocations: 0 / 0.974 GB, free: 10.52 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24): time 0.01291/0.7979, allocations: 3.21 MB / 0.9772 GB, free: 8.887 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.798, allocations: 54.53 kB / 0.9772 GB, free: 8.824 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006158/0.7986, allocations: 409.1 kB / 0.9776 GB, free: 8.57 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 7.848e-05/0.7987, allocations: 30.95 kB / 0.9776 GB, free: 8.535 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001827/0.7989, allocations: 236.8 kB / 0.9779 GB, free: 8.324 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 9.464e-05/0.799, allocations: 88.36 kB / 0.978 GB, free: 8.246 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.523e-05/0.7991, allocations: 31.39 kB / 0.978 GB, free: 8.215 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.7992, allocations: 346.8 kB / 0.9783 GB, free: 7.867 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001021/0.8002, allocations: 371.5 kB / 0.9787 GB, free: 7.504 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001039/0.8013, allocations: 444.4 kB / 0.9791 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002052/0.8034, allocations: 0.7842 MB / 0.9799 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.103e-06/0.8034, allocations: 0 / 0.9799 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005428/0.8088, allocations: 1.546 MB / 0.9814 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.000112/0.8089, allocations: 155.8 kB / 0.9815 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.809, allocations: 4 kB / 0.9815 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003981/0.8129, allocations: 0.8169 MB / 0.9823 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007393/0.8137, allocations: 139.8 kB / 0.9825 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006926/0.8206, allocations: 4.531 MB / 0.9869 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009825/0.8217, allocations: 131.9 kB / 0.987 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.92e-05/0.8217, allocations: 11.98 kB / 0.987 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.8218, allocations: 4 kB / 0.987 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004459/0.8262, allocations: 1.269 MB / 0.9883 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.8263, allocations: 4 kB / 0.9883 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002621/0.8289, allocations: 0.5393 MB / 0.9888 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007772/0.8297, allocations: 143.8 kB / 0.9889 GB, free: 12.61 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004786/0.8345, allocations: 2.697 MB / 0.9916 GB, free: 9.777 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000959/0.8355, allocations: 115.9 kB / 0.9917 GB, free: 9.664 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.956e-05/0.8356, allocations: 11.98 kB / 0.9917 GB, free: 9.652 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0005334/0.8361, allocations: 325 kB / 0.992 GB, free: 9.324 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.8362, allocations: 35.62 kB / 0.992 GB, free: 9.289 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004962/0.8412, allocations: 1.417 MB / 0.9934 GB, free: 7.855 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.717e-06/0.8412, allocations: 4 kB / 0.9934 GB, free: 7.852 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.8412, allocations: 0 / 0.9934 GB, free: 7.852 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.8412, allocations: 3.938 kB / 0.9934 GB, free: 7.848 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005538/0.8468, allocations: 2.042 MB / 0.9954 GB, free: 5.73 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.8468, allocations: 0 / 0.9954 GB, free: 5.73 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004242/0.8472, allocations: 83.91 kB / 0.9955 GB, free: 5.648 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003416/0.8507, allocations: 0.7584 MB / 0.9962 GB, free: 4.883 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.887e-05/0.8507, allocations: 15.92 kB / 0.9962 GB, free: 4.867 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005966/0.8567, allocations: 4.364 MB / 1.001 GB, free: 240 kB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.8568, allocations: 0 / 1.001 GB, free: 240 kB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004592/0.8614, allocations: 1.404 MB / 1.002 GB, free: 14.8 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003029/0.8617, allocations: 176.6 kB / 1.002 GB, free: 14.61 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.574e-05/0.8618, allocations: 11.88 kB / 1.002 GB, free: 14.59 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006319/0.8624, allocations: 95.84 kB / 1.002 GB, free: 14.5 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.8626, allocations: 19.97 kB / 1.002 GB, free: 14.48 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.165e-05/0.8626, allocations: 12.19 kB / 1.002 GB, free: 14.47 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0004379/0.863, allocations: 307.1 kB / 1.002 GB, free: 14.18 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8631, allocations: 0 / 1.002 GB, free: 14.18 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0009291/0.864, allocations: 204 kB / 1.003 GB, free: 13.98 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001923/0.8642, allocations: 119.2 kB / 1.003 GB, free: 13.85 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.004808/0.869, allocations: 1.756 MB / 1.004 GB, free: 12.05 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.869, allocations: 0 / 1.004 GB, free: 12.05 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001279/0.8703, allocations: 0.6378 MB / 1.005 GB, free: 11.39 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008539/0.8712, allocations: 111.8 kB / 1.005 GB, free: 11.28 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/0.8734, allocations: 1.269 MB / 1.006 GB, free: 9.977 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005283/0.8739, allocations: 0.9053 MB / 1.007 GB, free: 9.043 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.8741, allocations: 35.42 kB / 1.007 GB, free: 9.008 MB / 0.7637 GB Notification: Performance of SimCode: time 5.31e-07/0.8741, allocations: 3.938 kB / 1.007 GB, free: 9.004 MB / 0.7637 GB Notification: Performance of Templates: time 0.01768/0.8918, allocations: 12.51 MB / 1.02 GB, free: 12.52 MB / 0.7794 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches