Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00169/0.00169, allocations: 108 kB / 15.61 MB, free: 152 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.001943/0.001943, allocations: 196.5 kB / 16.53 MB, free: 6.664 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.321/1.321, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.318/2.318, allocations: 390.3 MB / 0.6647 GB, free: 420 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 63.89 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5431/0.5445, allocations: 140.4 MB / 0.9497 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.005578/0.5501, allocations: 5.467 MB / 0.9551 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00336/0.5534, allocations: 2.619 MB / 0.9576 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000246/0.5537, allocations: 20.25 kB / 0.9576 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001495/0.5552, allocations: 0.6866 MB / 0.9583 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0006742/0.5559, allocations: 412.7 kB / 0.9587 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007234/0.5567, allocations: 390.6 kB / 0.9591 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007303/0.5574, allocations: 0.9527 MB / 0.96 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005323/0.5579, allocations: 468.7 kB / 0.9605 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003476/0.5583, allocations: 369 kB / 0.9608 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004101/0.5587, allocations: 406 kB / 0.9612 GB, free: 484 kB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.086e-05/0.5588, allocations: 47.53 kB / 0.9612 GB, free: 484 kB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005588/0.5594, allocations: 366.3 kB / 0.9616 GB, free: 312 kB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001905/0.5596, allocations: 250.5 kB / 0.9618 GB, free: 148 kB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0003098/0.5599, allocations: 347 kB / 0.9622 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0009333/0.5608, allocations: 0.9568 MB / 0.9631 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.5608, allocations: 1.188 kB / 0.9631 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.433e-06/0.5608, allocations: 0 / 0.9631 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.07e-05/0.5609, allocations: 0 / 0.9631 GB, free: 15.28 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001494/0.5624, allocations: 0.9776 MB / 0.9641 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.5624, allocations: 9.719 kB / 0.9641 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001049/0.5625, allocations: 95.8 kB / 0.9642 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001396/0.5639, allocations: 195.3 kB / 0.9643 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006656/0.5646, allocations: 489.3 kB / 0.9648 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.967e-05/0.5646, allocations: 37.03 kB / 0.9648 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001529/0.5648, allocations: 62.56 kB / 0.9649 GB, free: 13.87 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.5659, allocations: 0.824 MB / 0.9657 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.098e-05/0.5659, allocations: 6.125 kB / 0.9657 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.026e-05/0.566, allocations: 23.22 kB / 0.9657 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001965/0.5662, allocations: 66.73 kB / 0.9658 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008698/0.5671, allocations: 0.5714 MB / 0.9664 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004016/0.5711, allocations: 4.583 MB / 0.9708 GB, free: 8.66 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004446/0.5716, allocations: 292.1 kB / 0.9711 GB, free: 8.504 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/0.5719, allocations: 222.6 kB / 0.9713 GB, free: 8.391 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.5719, allocations: 3.75 kB / 0.9713 GB, free: 8.391 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.602e-05/0.5719, allocations: 44.75 kB / 0.9714 GB, free: 8.34 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=33): time 1.853e-06/0.5719, allocations: 0 / 0.9714 GB, free: 8.34 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40): time 0.005501/0.5775, allocations: 2.632 MB / 0.9739 GB, free: 6.625 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/0.5775, allocations: 59.38 kB / 0.974 GB, free: 6.559 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004578/0.578, allocations: 457.9 kB / 0.9744 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.397e-05/0.578, allocations: 30.7 kB / 0.9745 GB, free: 6.242 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.5782, allocations: 339.9 kB / 0.9748 GB, free: 5.938 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.5783, allocations: 144.6 kB / 0.9749 GB, free: 5.812 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001543/0.5785, allocations: 105.3 kB / 0.975 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001188/0.5786, allocations: 363.6 kB / 0.9754 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000344/0.579, allocations: 239.5 kB / 0.9756 GB, free: 5.277 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004488/0.5794, allocations: 419.1 kB / 0.976 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008503/0.5803, allocations: 0.6724 MB / 0.9767 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.5803, allocations: 2.156 kB / 0.9767 GB, free: 4.445 MB / 0.7325 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001643/0.5819, allocations: 0.9136 MB / 0.9775 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.582, allocations: 11.28 kB / 0.9776 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.582, allocations: 8.562 kB / 0.9776 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007785/0.5828, allocations: 229.8 kB / 0.9778 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005094/0.5833, allocations: 116.8 kB / 0.9779 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004746/0.588, allocations: 5.34 MB / 0.9831 GB, free: 14.29 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004626/0.5885, allocations: 27.97 kB / 0.9831 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.002e-05/0.5886, allocations: 24 kB / 0.9832 GB, free: 14.23 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.0002849/0.5889, allocations: 225.7 kB / 0.9834 GB, free: 14 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.504e-05/0.589, allocations: 63.28 kB / 0.9834 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001443/0.5904, allocations: 0.7655 MB / 0.9842 GB, free: 13.16 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.5904, allocations: 8 kB / 0.9842 GB, free: 13.15 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.5904, allocations: 4 kB / 0.9842 GB, free: 13.14 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.5904, allocations: 7.922 kB / 0.9842 GB, free: 13.14 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002275/0.5927, allocations: 1.498 MB / 0.9857 GB, free: 11.55 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.5927, allocations: 0 / 0.9857 GB, free: 11.55 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003763/0.5931, allocations: 80.09 kB / 0.9857 GB, free: 11.47 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006501/0.5938, allocations: 202.3 kB / 0.9859 GB, free: 11.27 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.974e-05/0.5938, allocations: 12.19 kB / 0.9859 GB, free: 11.25 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004451/0.5983, allocations: 5.281 MB / 0.9911 GB, free: 5.551 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.5983, allocations: 3.938 kB / 0.9911 GB, free: 5.547 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001662/0.6, allocations: 1.127 MB / 0.9922 GB, free: 4.371 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002116/0.6002, allocations: 172.3 kB / 0.9924 GB, free: 4.184 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.859e-05/0.6003, allocations: 16.06 kB / 0.9924 GB, free: 4.168 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003345/0.6006, allocations: 27.91 kB / 0.9924 GB, free: 4.141 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.417e-05/0.6007, allocations: 31.95 kB / 0.9924 GB, free: 4.109 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.588e-05/0.6008, allocations: 12 kB / 0.9925 GB, free: 4.098 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003053/0.6011, allocations: 314.9 kB / 0.9928 GB, free: 3.793 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6011, allocations: 0 / 0.9928 GB, free: 3.793 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006508/0.6017, allocations: 168 kB / 0.9929 GB, free: 3.629 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001901/0.6036, allocations: 1.7 MB / 0.9946 GB, free: 1.871 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001625/0.6053, allocations: 1.057 MB / 0.9956 GB, free: 0.7773 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.6053, allocations: 0 / 0.9956 GB, free: 0.7773 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000936/0.6062, allocations: 0.676 MB / 0.9963 GB, free: 64 kB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008815/0.6071, allocations: 179.4 kB / 0.9964 GB, free: 15.89 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007092/0.6142, allocations: 5.683 MB / 1.002 GB, free: 9.91 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004802/0.6147, allocations: 0.9455 MB / 1.003 GB, free: 8.938 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003504/0.6151, allocations: 109 kB / 1.003 GB, free: 8.832 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002544/0.6153, allocations: 211.4 kB / 1.003 GB, free: 8.625 MB / 0.7637 GB Notification: Performance of SimCode: time 3.2e-07/0.6154, allocations: 3.938 kB / 1.003 GB, free: 8.621 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05262/0.668, allocations: 13.93 MB / 1.017 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.695/10.36, allocations: 2.672 kB / 1.017 GB, free: 10.93 MB / 0.7794 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches