Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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.OnePhase.Lines.Examples.ACLine_R,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.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,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.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001595/0.001596, allocations: 198.4 kB / 16.14 MB, free: 6.801 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.591/1.591, allocations: 222.9 MB / 239.8 MB, free: 4.586 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.5/2.5, allocations: 390.2 MB / 0.6642 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 64.14 kB / 0.8119 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8638/0.8651, allocations: 140.4 MB / 0.9489 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.008979/0.8741, allocations: 6.734 MB / 0.9555 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.005549/0.8797, allocations: 3.052 MB / 0.9585 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000857/0.8806, allocations: 23 kB / 0.9585 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.002202/0.8828, allocations: 0.894 MB / 0.9594 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001766/0.8846, allocations: 476.1 kB / 0.9598 GB, free: 496 kB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001245/0.8859, allocations: 383.2 kB / 0.9602 GB, free: 200 kB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.002818/0.8887, allocations: 1.583 MB / 0.9617 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001495/0.8902, allocations: 0.6468 MB / 0.9624 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000899/0.8911, allocations: 418.5 kB / 0.9628 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000834/0.892, allocations: 0.5289 MB / 0.9633 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.8921, allocations: 47.91 kB / 0.9633 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001062/0.8932, allocations: 452.3 kB / 0.9638 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.00036/0.8935, allocations: 296 kB / 0.9641 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0005513/0.8941, allocations: 424.1 kB / 0.9645 GB, free: 13.76 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001578/0.8957, allocations: 1.205 MB / 0.9656 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 9.027e-06/0.8957, allocations: 5.281 kB / 0.9656 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.714e-06/0.8957, allocations: 0 / 0.9656 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.52e-05/0.8957, allocations: 0 / 0.9656 GB, free: 12.93 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002316/0.8981, allocations: 1.157 MB / 0.9668 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.8981, allocations: 8.938 kB / 0.9668 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001686/0.8998, allocations: 231.9 kB / 0.967 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009379/0.9008, allocations: 0.5556 MB / 0.9675 GB, free: 11.47 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.989e-05/0.9008, allocations: 50.92 kB / 0.9676 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.9009, allocations: 66.48 kB / 0.9677 GB, free: 11.42 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001684/0.9026, allocations: 1.084 MB / 0.9687 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.768e-05/0.9027, allocations: 6.312 kB / 0.9687 GB, free: 10.63 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.211e-05/0.9028, allocations: 33.27 kB / 0.9688 GB, free: 10.61 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001748/0.9029, allocations: 85.19 kB / 0.9688 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.9042, allocations: 0.7528 MB / 0.9696 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006294/0.9105, allocations: 5.894 MB / 0.9753 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.9117, allocations: 0.5586 MB / 0.9759 GB, free: 4.43 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004702/0.9122, allocations: 328.1 kB / 0.9762 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.437e-05/0.9122, allocations: 6.188 kB / 0.9762 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.9122, allocations: 38.03 kB / 0.9762 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=47): time 2.686e-06/0.9123, allocations: 0 / 0.9762 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.004269/0.9165, allocations: 1.981 MB / 0.9782 GB, free: 2.922 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.9166, allocations: 56.84 kB / 0.9782 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007273/0.9173, allocations: 0.5622 MB / 0.9788 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4e-05/0.9174, allocations: 35.92 kB / 0.9788 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002947/0.9177, allocations: 421.1 kB / 0.9792 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.9178, allocations: 167.6 kB / 0.9794 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.9181, allocations: 126.7 kB / 0.9795 GB, free: 1.871 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001746/0.9182, allocations: 377.9 kB / 0.9798 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004351/0.9187, allocations: 271.5 kB / 0.9801 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006387/0.9193, allocations: 498.5 kB / 0.9806 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.9204, allocations: 0.8133 MB / 0.9814 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.9204, allocations: 4 kB / 0.9814 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001915/0.9223, allocations: 1.079 MB / 0.9824 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.9224, allocations: 13.7 kB / 0.9824 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.9224, allocations: 8.094 kB / 0.9824 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009745/0.9234, allocations: 279.2 kB / 0.9827 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004829/0.9239, allocations: 123.8 kB / 0.9828 GB, free: 14.37 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00775/0.9316, allocations: 6.595 MB / 0.9893 GB, free: 7.246 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001164/0.9329, allocations: 47.95 kB / 0.9893 GB, free: 7.199 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.4e-05/0.933, allocations: 24 kB / 0.9893 GB, free: 7.176 MB / 0.7481 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 (67): * Single equations (assignments): 63 * 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 {(2,6,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005963/0.9336, allocations: 257.6 kB / 0.9896 GB, free: 6.914 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/0.9338, allocations: 67.25 kB / 0.9896 GB, free: 6.848 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001828/0.9356, allocations: 0.8924 MB / 0.9905 GB, free: 5.938 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.146e-06/0.9356, allocations: 4 kB / 0.9905 GB, free: 5.934 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.9356, allocations: 4 kB / 0.9905 GB, free: 5.93 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.9356, allocations: 7.984 kB / 0.9905 GB, free: 5.922 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002793/0.9384, allocations: 1.724 MB / 0.9922 GB, free: 4.109 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.9385, allocations: 7.938 kB / 0.9922 GB, free: 4.102 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002764/0.9387, allocations: 63.88 kB / 0.9923 GB, free: 4.039 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008657/0.9396, allocations: 259.4 kB / 0.9925 GB, free: 3.773 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.8e-05/0.9397, allocations: 12 kB / 0.9925 GB, free: 3.762 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006681/0.9464, allocations: 6.579 MB / 0.999 GB, free: 12.64 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.9464, allocations: 4.031 kB / 0.999 GB, free: 12.64 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001908/0.9483, allocations: 0.9835 MB / 0.9999 GB, free: 11.61 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003903/0.9487, allocations: 192.2 kB / 1 GB, free: 11.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.199e-05/0.9488, allocations: 15.92 kB / 1 GB, free: 11.39 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003817/0.9492, allocations: 27.97 kB / 1 GB, free: 11.36 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.9494, allocations: 40.08 kB / 1 GB, free: 11.32 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.861e-05/0.9494, allocations: 23.98 kB / 1 GB, free: 11.3 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0004819/0.9499, allocations: 387.1 kB / 1.001 GB, free: 10.92 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9499, allocations: 0 / 1.001 GB, free: 10.92 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0009843/0.9509, allocations: 228 kB / 1.001 GB, free: 10.7 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * 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: 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 {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002034/0.9511, allocations: 107.2 kB / 1.001 GB, free: 10.59 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002056/0.9532, allocations: 1.271 MB / 1.002 GB, free: 9.266 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.9532, allocations: 0 / 1.002 GB, free: 9.266 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001297/0.9545, allocations: 0.8935 MB / 1.003 GB, free: 8.32 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.9557, allocations: 204.3 kB / 1.003 GB, free: 8.125 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002715/0.9584, allocations: 1.651 MB / 1.005 GB, free: 6.426 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007111/0.9591, allocations: 1.009 MB / 1.006 GB, free: 5.387 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0005293/0.9597, allocations: 118 kB / 1.006 GB, free: 5.27 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.9598, allocations: 39.44 kB / 1.006 GB, free: 5.234 MB / 0.7637 GB Notification: Performance of SimCode: time 1.963e-06/0.9598, allocations: 4 kB / 1.006 GB, free: 5.23 MB / 0.7637 GB Notification: Performance of Templates: time 0.02301/0.9828, allocations: 10.78 MB / 1.016 GB, free: 10.58 MB / 0.7794 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches