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.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: "" <> 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.001195/0.001195, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001111/0.001111, allocations: 195.1 kB / 16.14 MB, free: 6.691 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.192/1.192, allocations: 222.9 MB / 239.8 MB, free: 4.637 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.192/2.192, allocations: 390.2 MB / 0.6643 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 55.91 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5421/0.5435, allocations: 140.4 MB / 0.9491 GB, free: 9.199 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.005481/0.549, allocations: 5.476 MB / 0.9544 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003042/0.5521, allocations: 2.642 MB / 0.957 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002133/0.5523, allocations: 19.16 kB / 0.957 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001324/0.5536, allocations: 0.6378 MB / 0.9576 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005692/0.5542, allocations: 379.8 kB / 0.958 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000597/0.5548, allocations: 353.5 kB / 0.9583 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008803/0.5557, allocations: 1.263 MB / 0.9596 GB, free: 1.141 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005866/0.5563, allocations: 456.8 kB / 0.96 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003416/0.5566, allocations: 325.7 kB / 0.9603 GB, free: 0.7344 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003918/0.557, allocations: 417.2 kB / 0.9607 GB, free: 0.4922 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.78e-05/0.5571, allocations: 32.75 kB / 0.9607 GB, free: 0.4922 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000575/0.5577, allocations: 434.6 kB / 0.9612 GB, free: 272 kB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001815/0.5579, allocations: 234.8 kB / 0.9614 GB, free: 124 kB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0003087/0.5582, allocations: 330.4 kB / 0.9617 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0009023/0.5591, allocations: 0.9671 MB / 0.9626 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.5591, allocations: 0 / 0.9626 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of FrontEnd: time 9.21e-07/0.5591, allocations: 1.188 kB / 0.9626 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.115e-06/0.5591, allocations: 4 kB / 0.9626 GB, free: 15.26 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.00145/0.5606, allocations: 0.9739 MB / 0.9636 GB, free: 14.47 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.5606, allocations: 8.719 kB / 0.9636 GB, free: 14.47 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001082/0.5608, allocations: 99.62 kB / 0.9637 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00131/0.5621, allocations: 195.6 kB / 0.9639 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006256/0.5627, allocations: 484.8 kB / 0.9643 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.219e-05/0.5628, allocations: 42.08 kB / 0.9644 GB, free: 13.87 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.5629, allocations: 50.2 kB / 0.9644 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/0.564, allocations: 0.8278 MB / 0.9652 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.345e-05/0.564, allocations: 10.7 kB / 0.9652 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.279e-05/0.5641, allocations: 26.42 kB / 0.9653 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001835/0.5643, allocations: 62.55 kB / 0.9653 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008579/0.5652, allocations: 0.5723 MB / 0.9659 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00395/0.5691, allocations: 4.587 MB / 0.9704 GB, free: 8.641 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004251/0.5696, allocations: 292 kB / 0.9707 GB, free: 8.484 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002904/0.5699, allocations: 226.5 kB / 0.9709 GB, free: 8.367 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.865e-05/0.5699, allocations: 3.625 kB / 0.9709 GB, free: 8.367 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.5699, allocations: 37.09 kB / 0.9709 GB, free: 8.324 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=33): time 1.613e-06/0.5699, allocations: 0 / 0.9709 GB, free: 8.324 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40): time 0.005305/0.5752, allocations: 2.636 MB / 0.9735 GB, free: 6.605 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.242e-05/0.5753, allocations: 59.53 kB / 0.9735 GB, free: 6.539 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004477/0.5757, allocations: 453.6 kB / 0.974 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.593e-05/0.5758, allocations: 34.83 kB / 0.974 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000201/0.576, allocations: 340 kB / 0.9743 GB, free: 5.914 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.5761, allocations: 144.4 kB / 0.9745 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/0.5763, allocations: 102.2 kB / 0.9746 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.5764, allocations: 359.7 kB / 0.9749 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003414/0.5767, allocations: 243.3 kB / 0.9751 GB, free: 5.258 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004346/0.5772, allocations: 410.7 kB / 0.9755 GB, free: 4.914 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008056/0.578, allocations: 0.6812 MB / 0.9762 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.578, allocations: 1.062 kB / 0.9762 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001576/0.5796, allocations: 0.9169 MB / 0.9771 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.5796, allocations: 11.5 kB / 0.9771 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.5796, allocations: 8.828 kB / 0.9771 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007652/0.5804, allocations: 226.2 kB / 0.9773 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004759/0.5809, allocations: 117.1 kB / 0.9774 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004409/0.5853, allocations: 4.934 MB / 0.9823 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003955/0.5857, allocations: 32.16 kB / 0.9823 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.711e-05/0.5858, allocations: 32 kB / 0.9823 GB, free: 14.68 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.0002701/0.5861, allocations: 229.6 kB / 0.9825 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.94e-05/0.5862, allocations: 55.34 kB / 0.9826 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001401/0.5876, allocations: 0.7695 MB / 0.9833 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.5876, allocations: 7.984 kB / 0.9833 GB, free: 13.6 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.5876, allocations: 4 kB / 0.9834 GB, free: 13.6 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.5876, allocations: 0 / 0.9834 GB, free: 13.6 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002297/0.5899, allocations: 1.498 MB / 0.9848 GB, free: 12.01 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.5899, allocations: 4 kB / 0.9848 GB, free: 12.01 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003694/0.5903, allocations: 67.88 kB / 0.9849 GB, free: 11.94 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006535/0.591, allocations: 202.6 kB / 0.9851 GB, free: 11.73 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.033e-05/0.591, allocations: 12 kB / 0.9851 GB, free: 11.72 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004236/0.5953, allocations: 4.866 MB / 0.9898 GB, free: 6.457 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.5953, allocations: 7.922 kB / 0.9898 GB, free: 6.449 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001641/0.5969, allocations: 1.143 MB / 0.991 GB, free: 5.258 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002012/0.5971, allocations: 164.4 kB / 0.9911 GB, free: 5.078 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.681e-05/0.5972, allocations: 15.98 kB / 0.9911 GB, free: 5.062 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003084/0.5975, allocations: 23.97 kB / 0.9912 GB, free: 5.039 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.887e-05/0.5976, allocations: 43.89 kB / 0.9912 GB, free: 4.996 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.913e-05/0.5977, allocations: 12 kB / 0.9912 GB, free: 4.984 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003211/0.598, allocations: 310.9 kB / 0.9915 GB, free: 4.684 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.4e-07/0.598, allocations: 4 kB / 0.9915 GB, free: 4.68 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006431/0.5986, allocations: 164 kB / 0.9917 GB, free: 4.52 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.001938/0.6006, allocations: 1.693 MB / 0.9933 GB, free: 2.766 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001482/0.6021, allocations: 1 MB / 0.9943 GB, free: 1.727 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.6021, allocations: 0 / 0.9943 GB, free: 1.727 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0008949/0.603, allocations: 0.6799 MB / 0.995 GB, free: 1.008 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008425/0.6039, allocations: 175.5 kB / 0.9951 GB, free: 0.8398 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007736/0.6116, allocations: 5.913 MB / 1.001 GB, free: 10.63 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005219/0.6121, allocations: 0.9455 MB / 1.002 GB, free: 9.66 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003702/0.6125, allocations: 116.9 kB / 1.002 GB, free: 9.547 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002565/0.6128, allocations: 211.4 kB / 1.002 GB, free: 9.34 MB / 0.7637 GB Notification: Performance of SimCode: time 2.91e-07/0.6128, allocations: 0 / 1.002 GB, free: 9.34 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.511/2.124, allocations: 13.48 MB / 1.015 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002436/2.124, allocations: 234.4 kB / 1.016 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.92/4.044, allocations: 7.938 kB / 1.016 GB, free: 11.84 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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