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.001034/0.001034, 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.001038/0.001038, allocations: 196.8 kB / 16.53 MB, free: 6.699 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.228/1.228, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.127/2.127, allocations: 390.2 MB / 0.6647 GB, free: 420 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 67.89 kB / 0.8126 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4825/0.4836, allocations: 140.4 MB / 0.9497 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.005089/0.4888, allocations: 5.46 MB / 0.9551 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002754/0.4915, allocations: 2.622 MB / 0.9576 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001921/0.4917, allocations: 25.38 kB / 0.9576 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001297/0.493, allocations: 0.6782 MB / 0.9583 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005126/0.4936, allocations: 405.5 kB / 0.9587 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005464/0.4941, allocations: 392.4 kB / 0.9591 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006398/0.4948, allocations: 0.9603 MB / 0.96 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004979/0.4953, allocations: 473 kB / 0.9605 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002954/0.4956, allocations: 368.5 kB / 0.9608 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003489/0.4959, allocations: 397.8 kB / 0.9612 GB, free: 484 kB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.153e-05/0.496, allocations: 48.84 kB / 0.9612 GB, free: 484 kB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004413/0.4965, allocations: 365.8 kB / 0.9616 GB, free: 312 kB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001685/0.4966, allocations: 251.6 kB / 0.9618 GB, free: 148 kB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002582/0.4969, allocations: 344.7 kB / 0.9621 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0008076/0.4977, allocations: 0.9584 MB / 0.9631 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.4977, allocations: 0 / 0.9631 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.102e-06/0.4977, allocations: 0 / 0.9631 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.376e-06/0.4977, 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.001295/0.499, allocations: 0.9737 MB / 0.964 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.4991, allocations: 10.34 kB / 0.964 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001019/0.4992, allocations: 99.22 kB / 0.9641 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001257/0.5005, allocations: 196.2 kB / 0.9643 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005692/0.501, allocations: 491.5 kB / 0.9648 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.018e-05/0.5011, allocations: 37.31 kB / 0.9648 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001323/0.5012, allocations: 55.05 kB / 0.9649 GB, free: 13.87 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000983/0.5022, allocations: 0.8283 MB / 0.9657 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.026e-05/0.5022, allocations: 6.188 kB / 0.9657 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.509e-05/0.5023, allocations: 19.31 kB / 0.9657 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001756/0.5025, allocations: 65.73 kB / 0.9658 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007909/0.5033, allocations: 0.5758 MB / 0.9663 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003571/0.5068, allocations: 4.583 MB / 0.9708 GB, free: 8.66 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004123/0.5073, allocations: 300.1 kB / 0.9711 GB, free: 8.496 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002707/0.5076, allocations: 227 kB / 0.9713 GB, free: 8.379 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.353e-05/0.5076, allocations: 7.375 kB / 0.9713 GB, free: 8.375 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.5076, allocations: 37 kB / 0.9714 GB, free: 8.332 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=33): time 1.362e-06/0.5076, allocations: 0 / 0.9714 GB, free: 8.332 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40): time 0.004966/0.5126, allocations: 2.632 MB / 0.9739 GB, free: 6.617 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.025e-05/0.5126, allocations: 55.69 kB / 0.974 GB, free: 6.555 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003953/0.513, allocations: 456.4 kB / 0.9744 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.233e-05/0.5131, allocations: 36.11 kB / 0.9745 GB, free: 6.234 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.5133, allocations: 339.7 kB / 0.9748 GB, free: 5.93 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 9.927e-05/0.5134, allocations: 148.5 kB / 0.9749 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.5135, allocations: 106.1 kB / 0.975 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.5136, allocations: 362.5 kB / 0.9754 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003108/0.5139, allocations: 232 kB / 0.9756 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004037/0.5143, allocations: 414.1 kB / 0.976 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007454/0.5151, allocations: 0.6779 MB / 0.9766 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.5151, allocations: 1.469 kB / 0.9766 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001471/0.5166, allocations: 0.9194 MB / 0.9775 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.5166, allocations: 7.625 kB / 0.9776 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.5166, allocations: 6.188 kB / 0.9776 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007055/0.5173, allocations: 225.7 kB / 0.9778 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004665/0.5178, allocations: 120.7 kB / 0.9779 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004309/0.5221, allocations: 5.338 MB / 0.9831 GB, free: 14.29 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003889/0.5225, allocations: 31.97 kB / 0.9831 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.468e-05/0.5226, allocations: 20.06 kB / 0.9832 GB, free: 14.24 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.0002395/0.5228, allocations: 230.7 kB / 0.9834 GB, free: 14.01 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.412e-05/0.5229, allocations: 59.28 kB / 0.9834 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001324/0.5242, allocations: 0.7733 MB / 0.9842 GB, free: 13.16 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.5243, allocations: 4 kB / 0.9842 GB, free: 13.15 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.5243, allocations: 4 kB / 0.9842 GB, free: 13.15 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.5243, allocations: 0 / 0.9842 GB, free: 13.15 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002137/0.5264, allocations: 1.498 MB / 0.9857 GB, free: 11.56 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.5264, allocations: 4 kB / 0.9857 GB, free: 11.56 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003553/0.5268, allocations: 71.88 kB / 0.9857 GB, free: 11.49 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006234/0.5274, allocations: 202.8 kB / 0.9859 GB, free: 11.28 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.073e-05/0.5275, allocations: 12 kB / 0.9859 GB, free: 11.27 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004131/0.5316, allocations: 5.281 MB / 0.9911 GB, free: 5.566 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.5316, allocations: 4 kB / 0.9911 GB, free: 5.562 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/0.5332, allocations: 1.143 MB / 0.9922 GB, free: 4.371 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000196/0.5334, allocations: 168.3 kB / 0.9924 GB, free: 4.188 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.799e-05/0.5334, allocations: 15.92 kB / 0.9924 GB, free: 4.172 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003068/0.5338, allocations: 27.97 kB / 0.9924 GB, free: 4.145 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.631e-05/0.5338, allocations: 35.89 kB / 0.9924 GB, free: 4.109 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.562e-05/0.5339, allocations: 20.06 kB / 0.9925 GB, free: 4.09 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002927/0.5342, allocations: 306.9 kB / 0.9928 GB, free: 3.793 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5342, allocations: 0 / 0.9928 GB, free: 3.793 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006238/0.5348, 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.001763/0.5366, allocations: 1.696 MB / 0.9946 GB, free: 1.875 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001527/0.5381, allocations: 1.057 MB / 0.9956 GB, free: 0.7812 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.5381, allocations: 0 / 0.9956 GB, free: 0.7812 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0008445/0.539, allocations: 0.6838 MB / 0.9963 GB, free: 60 kB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008277/0.5398, 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.006506/0.5463, allocations: 5.672 MB / 1.002 GB, free: 9.918 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004244/0.5468, allocations: 0.9455 MB / 1.003 GB, free: 8.945 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003146/0.5471, allocations: 113 kB / 1.003 GB, free: 8.836 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002305/0.5473, allocations: 207.4 kB / 1.003 GB, free: 8.633 MB / 0.7637 GB Notification: Performance of SimCode: time 2.1e-07/0.5473, allocations: 0 / 1.003 GB, free: 8.633 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.219/2.766, allocations: 13.93 MB / 1.017 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.09/12.86, allocations: 17.83 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 & /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