Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001242/0.001242, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001404/0.001404, allocations: 196.9 kB / 16.14 MB, free: 6.719 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.25/1.25, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.308/2.308, allocations: 437 MB / 0.7099 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 59.91 kB / 0.8687 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4905/0.4919, allocations: 151.6 MB / 1.017 GB, free: 2.82 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.005877/0.4978, allocations: 5.481 MB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003196/0.501, allocations: 2.631 MB / 1.025 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001877/0.5012, allocations: 23.81 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001391/0.5026, allocations: 0.6345 MB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005958/0.5032, allocations: 390.1 kB / 1.026 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006379/0.5039, allocations: 351.3 kB / 1.026 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0008947/0.5048, allocations: 1.251 MB / 1.027 GB, free: 8.035 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005677/0.5053, allocations: 454.2 kB / 1.028 GB, free: 7.59 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003084/0.5057, allocations: 330.6 kB / 1.028 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003882/0.5061, allocations: 410.4 kB / 1.028 GB, free: 6.863 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.003e-05/0.5061, allocations: 32 kB / 1.028 GB, free: 6.832 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005577/0.5067, allocations: 447.1 kB / 1.029 GB, free: 6.395 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001926/0.5069, allocations: 231.4 kB / 1.029 GB, free: 6.168 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002728/0.5072, allocations: 334.2 kB / 1.029 GB, free: 5.84 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007711/0.5079, allocations: 0.9694 MB / 1.03 GB, free: 4.867 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.508, allocations: 0 / 1.03 GB, free: 4.867 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.174e-06/0.508, allocations: 4 kB / 1.03 GB, free: 4.863 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.508e-06/0.508, allocations: 0 / 1.03 GB, free: 4.863 MB / 0.7794 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.001284/0.5093, allocations: 0.9699 MB / 1.031 GB, free: 3.84 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.5093, allocations: 11.97 kB / 1.031 GB, free: 3.828 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.919e-05/0.5094, allocations: 94.7 kB / 1.031 GB, free: 3.727 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001251/0.5107, allocations: 191.9 kB / 1.032 GB, free: 3.539 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005612/0.5112, allocations: 0.4945 MB / 1.032 GB, free: 3.004 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.5113, allocations: 33.38 kB / 1.032 GB, free: 2.973 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.5114, allocations: 56.55 kB / 1.032 GB, free: 2.918 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009717/0.5124, allocations: 0.8316 MB / 1.033 GB, free: 2.004 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.5124, allocations: 11.91 kB / 1.033 GB, free: 1.992 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.242e-05/0.5125, allocations: 20 kB / 1.033 GB, free: 1.973 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001784/0.5127, allocations: 68.89 kB / 1.033 GB, free: 1.902 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007713/0.5134, allocations: 0.5697 MB / 1.034 GB, free: 1.336 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003819/0.5173, allocations: 4.581 MB / 1.038 GB, free: 12.4 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004297/0.5177, allocations: 295.3 kB / 1.038 GB, free: 12.11 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002768/0.518, allocations: 225.3 kB / 1.039 GB, free: 11.88 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/0.518, allocations: 4.219 kB / 1.039 GB, free: 11.88 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.5181, allocations: 42.84 kB / 1.039 GB, free: 11.83 MB / 0.795 GB Notification: Performance of pre-optimization done (n=33): time 1.483e-06/0.5181, allocations: 0 / 1.039 GB, free: 11.83 MB / 0.795 GB Notification: Performance of matching and sorting (n=40): time 0.004935/0.523, allocations: 2.618 MB / 1.041 GB, free: 9.082 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.894e-05/0.523, allocations: 55.41 kB / 1.041 GB, free: 9.016 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003836/0.5234, allocations: 461.9 kB / 1.042 GB, free: 8.555 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.016e-05/0.5235, allocations: 33.7 kB / 1.042 GB, free: 8.516 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001755/0.5237, allocations: 335.7 kB / 1.042 GB, free: 8.18 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 9.286e-05/0.5238, allocations: 149.9 kB / 1.042 GB, free: 8.031 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001443/0.5239, allocations: 106.1 kB / 1.042 GB, free: 7.922 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.524, allocations: 366.8 kB / 1.043 GB, free: 7.555 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003228/0.5243, allocations: 233 kB / 1.043 GB, free: 7.328 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004009/0.5248, allocations: 414.3 kB / 1.043 GB, free: 6.848 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007593/0.5255, allocations: 0.6779 MB / 1.044 GB, free: 6.098 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.5255, allocations: 0 / 1.044 GB, free: 6.098 MB / 0.795 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001487/0.527, allocations: 0.9208 MB / 1.045 GB, free: 5.16 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.527, allocations: 8 kB / 1.045 GB, free: 5.152 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.5271, allocations: 4 kB / 1.045 GB, free: 5.148 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007396/0.5278, allocations: 223 kB / 1.045 GB, free: 4.922 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004652/0.5283, allocations: 119.8 kB / 1.045 GB, free: 4.805 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004137/0.5324, allocations: 4.939 MB / 1.05 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000356/0.5328, allocations: 27.97 kB / 1.05 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.728e-05/0.5328, allocations: 24.19 kB / 1.05 GB, free: 15.42 MB / 0.8106 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.0002245/0.5331, allocations: 226.1 kB / 1.05 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.002e-05/0.5332, allocations: 59.41 kB / 1.05 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001352/0.5345, allocations: 0.7774 MB / 1.051 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.167e-06/0.5345, allocations: 8 kB / 1.051 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.5345, allocations: 0 / 1.051 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.5345, allocations: 0 / 1.051 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002093/0.5366, allocations: 1.505 MB / 1.052 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.5367, allocations: 0 / 1.052 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003462/0.537, allocations: 67.88 kB / 1.053 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006447/0.5377, allocations: 206.6 kB / 1.053 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.907e-05/0.5377, allocations: 8 kB / 1.053 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003926/0.5416, allocations: 4.872 MB / 1.058 GB, free: 7.176 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.5416, allocations: 7.875 kB / 1.058 GB, free: 7.168 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/0.5432, allocations: 1.135 MB / 1.059 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001741/0.5434, allocations: 172.4 kB / 1.059 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.797e-05/0.5435, allocations: 11.94 kB / 1.059 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002955/0.5438, allocations: 23.97 kB / 1.059 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.774e-05/0.5439, allocations: 39.89 kB / 1.059 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.579e-05/0.5439, allocations: 12 kB / 1.059 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002743/0.5442, allocations: 314.9 kB / 1.059 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5442, allocations: 0 / 1.059 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005285/0.5447, allocations: 164 kB / 1.059 GB, free: 5.246 MB / 0.8106 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.001788/0.5465, allocations: 1.689 MB / 1.061 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001351/0.5479, allocations: 1.004 MB / 1.062 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.5479, allocations: 4 kB / 1.062 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0008393/0.5487, allocations: 0.6759 MB / 1.063 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007893/0.5495, allocations: 175.5 kB / 1.063 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007107/0.5566, allocations: 5.914 MB / 1.069 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004203/0.5571, allocations: 0.9455 MB / 1.069 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0003334/0.5574, allocations: 121 kB / 1.07 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002334/0.5576, allocations: 207.4 kB / 1.07 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.5577, allocations: 0 / 1.07 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.811/2.369, allocations: 13.49 MB / 1.083 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002721/2.369, allocations: 236.6 kB / 1.083 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.397/4.766, allocations: 0 / 1.083 GB, free: 12.58 MB / 0.8419 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches