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.001521/0.001521, allocations: 104 kB / 15.6 MB, free: 148 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.002001/0.002001, allocations: 196.1 kB / 16.53 MB, free: 6.617 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.544/1.545, allocations: 222.9 MB / 240.2 MB, free: 4.215 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.587/2.587, allocations: 390.2 MB / 0.6647 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 63.91 kB / 0.8125 GB, free: 14.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8363/0.8377, allocations: 140.4 MB / 0.9496 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.008771/0.8466, allocations: 6.728 MB / 0.9562 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004994/0.8516, allocations: 3.036 MB / 0.9591 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008759/0.8525, allocations: 28.19 kB / 0.9592 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.002431/0.855, allocations: 0.9527 MB / 0.9601 GB, free: 0.8711 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00174/0.8567, allocations: 0.4994 MB / 0.9606 GB, free: 476 kB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001189/0.8579, allocations: 420.7 kB / 0.961 GB, free: 140 kB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.002168/0.8601, allocations: 1.226 MB / 0.9622 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001283/0.8614, allocations: 0.6561 MB / 0.9628 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001107/0.8625, allocations: 476.8 kB / 0.9633 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009137/0.8634, allocations: 0.5167 MB / 0.9638 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.000132/0.8636, allocations: 66.41 kB / 0.9638 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001008/0.8646, allocations: 380.8 kB / 0.9642 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0003403/0.865, allocations: 303.3 kB / 0.9645 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0005604/0.8655, allocations: 456.3 kB / 0.9649 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0018/0.8673, allocations: 1.194 MB / 0.9661 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.8673, allocations: 0 / 0.9661 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.024e-06/0.8674, allocations: 1.281 kB / 0.9661 GB, free: 13.03 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 2.096e-05/0.8674, allocations: 0 / 0.9661 GB, free: 13.03 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.002454/0.8698, allocations: 1.161 MB / 0.9672 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.8699, allocations: 12.72 kB / 0.9672 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001628/0.8715, allocations: 244.3 kB / 0.9675 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009162/0.8725, allocations: 0.54 MB / 0.968 GB, free: 11.57 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.805e-05/0.8725, allocations: 50.95 kB / 0.968 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.8727, allocations: 62.77 kB / 0.9681 GB, free: 11.53 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/0.8744, allocations: 1.087 MB / 0.9692 GB, free: 10.74 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.989e-05/0.8744, allocations: 6.312 kB / 0.9692 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.187e-05/0.8745, allocations: 37.62 kB / 0.9692 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001798/0.8747, allocations: 80.73 kB / 0.9693 GB, free: 10.69 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.8759, allocations: 0.7496 MB / 0.97 GB, free: 10.31 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005828/0.8817, allocations: 5.901 MB / 0.9758 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.8829, allocations: 0.5574 MB / 0.9763 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000514/0.8835, allocations: 334.7 kB / 0.9766 GB, free: 4.348 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.151e-05/0.8835, allocations: 8.219 kB / 0.9767 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.359e-05/0.8836, allocations: 38.5 kB / 0.9767 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=47): time 3.788e-06/0.8836, allocations: 0 / 0.9767 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.004686/0.8883, allocations: 1.986 MB / 0.9786 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/0.8883, allocations: 59.81 kB / 0.9787 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009013/0.8893, allocations: 0.5555 MB / 0.9792 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.918e-05/0.8893, allocations: 32.61 kB / 0.9793 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000327/0.8897, allocations: 419.5 kB / 0.9797 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001657/0.8898, allocations: 172 kB / 0.9798 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002153/0.89, allocations: 126.1 kB / 0.9799 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001641/0.8902, allocations: 378.7 kB / 0.9803 GB, free: 1.543 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003931/0.8906, allocations: 281.8 kB / 0.9806 GB, free: 1.266 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000542/0.8912, allocations: 493 kB / 0.981 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.8922, allocations: 0.8016 MB / 0.9818 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.8922, allocations: 4 kB / 0.9818 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001919/0.8941, allocations: 1.083 MB / 0.9829 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.192e-05/0.8942, allocations: 11.94 kB / 0.9829 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.823e-05/0.8942, allocations: 8 kB / 0.9829 GB, free: 14.67 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008859/0.8951, allocations: 283.9 kB / 0.9832 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004774/0.8956, allocations: 123.8 kB / 0.9833 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00645/0.902, allocations: 7.133 MB / 0.9903 GB, free: 6.562 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008065/0.9029, allocations: 43.95 kB / 0.9903 GB, free: 6.52 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.393e-05/0.9029, allocations: 28.06 kB / 0.9903 GB, free: 6.492 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.0004639/0.9034, allocations: 254.1 kB / 0.9906 GB, free: 6.234 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.9035, allocations: 71.16 kB / 0.9906 GB, free: 6.164 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001512/0.9051, allocations: 0.8924 MB / 0.9915 GB, free: 5.25 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.9051, allocations: 4 kB / 0.9915 GB, free: 5.246 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.9051, allocations: 4 kB / 0.9915 GB, free: 5.242 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.9051, allocations: 3.984 kB / 0.9915 GB, free: 5.238 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002544/0.9076, allocations: 1.724 MB / 0.9932 GB, free: 3.426 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.9077, allocations: 4.188 kB / 0.9932 GB, free: 3.422 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002626/0.9079, allocations: 67.83 kB / 0.9933 GB, free: 3.355 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007268/0.9087, allocations: 267.4 kB / 0.9935 GB, free: 3.082 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.234e-05/0.9087, allocations: 8 kB / 0.9935 GB, free: 3.074 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006206/0.9149, allocations: 7.13 MB / 1.001 GB, free: 11.38 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.915, allocations: 3.938 kB / 1.001 GB, free: 11.38 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001519/0.9165, allocations: 0.9796 MB / 1.001 GB, free: 10.35 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003238/0.9168, allocations: 192.2 kB / 1.002 GB, free: 10.14 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.79e-05/0.9169, allocations: 11.94 kB / 1.002 GB, free: 10.13 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003687/0.9173, allocations: 35.91 kB / 1.002 GB, free: 10.09 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.9174, allocations: 39.94 kB / 1.002 GB, free: 10.05 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.839e-05/0.9174, allocations: 16 kB / 1.002 GB, free: 10.04 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.000434/0.9179, allocations: 387.1 kB / 1.002 GB, free: 9.668 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9179, allocations: 0 / 1.002 GB, free: 9.668 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0008849/0.9188, allocations: 224 kB / 1.002 GB, free: 9.449 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.000171/0.9189, allocations: 115.2 kB / 1.002 GB, free: 9.328 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001996/0.9209, allocations: 1.334 MB / 1.004 GB, free: 7.941 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 8.786e-06/0.921, allocations: 0 / 1.004 GB, free: 7.941 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001148/0.9221, allocations: 0.9014 MB / 1.005 GB, free: 6.988 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.9231, allocations: 216.9 kB / 1.005 GB, free: 6.781 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.9253, allocations: 1.342 MB / 1.006 GB, free: 5.387 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006108/0.9259, allocations: 1.013 MB / 1.007 GB, free: 4.344 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003838/0.9263, allocations: 122 kB / 1.007 GB, free: 4.223 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.9264, allocations: 43.44 kB / 1.007 GB, free: 4.184 MB / 0.7637 GB Notification: Performance of SimCode: time 3.91e-07/0.9264, allocations: 0 / 1.007 GB, free: 4.184 MB / 0.7637 GB Notification: Performance of Templates: time 0.01994/0.9464, allocations: 11.17 MB / 1.018 GB, free: 9.152 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