Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_R,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",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.008606/0.008607, allocations: 99.8 kB / 15.73 MB, free: 6.043 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.001864/0.001864, allocations: 187.6 kB / 16.67 MB, free: 5.977 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.572/2.572, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 67.83 kB / 1.054 GB, free: 7.695 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.288, allocations: 157.4 MB / 1.207 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.008211/0.2962, allocations: 6.726 MB / 1.214 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00489/0.3012, allocations: 3.036 MB / 1.217 GB, free: 384 kB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006894/0.3019, allocations: 27.81 kB / 1.217 GB, free: 356 kB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002633/0.3045, allocations: 0.9546 MB / 1.218 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001484/0.306, allocations: 0.5011 MB / 1.218 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001186/0.3072, allocations: 433.8 kB / 1.219 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001596/0.3089, allocations: 1.22 MB / 1.22 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001031/0.3099, allocations: 0.6625 MB / 1.221 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007989/0.3107, allocations: 478.2 kB / 1.221 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008295/0.3116, allocations: 0.5175 MB / 1.221 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001795/0.3117, allocations: 68 kB / 1.222 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007974/0.3126, allocations: 375.3 kB / 1.222 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003481/0.3129, allocations: 319.1 kB / 1.222 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0005956/0.3135, allocations: 445.8 kB / 1.223 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001437/0.315, allocations: 1.211 MB / 1.224 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.315, allocations: 4 kB / 1.224 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.573e-06/0.315, allocations: 0 / 1.224 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.909e-05/0.315, allocations: 4 kB / 1.224 GB, free: 9.184 MB / 0.9825 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.002221/0.3173, allocations: 1.157 MB / 1.225 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.3173, allocations: 8.625 kB / 1.225 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001693/0.3175, allocations: 130.6 kB / 1.225 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001631/0.3191, allocations: 231.6 kB / 1.225 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/0.3202, allocations: 0.5882 MB / 1.226 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.667e-05/0.3203, allocations: 49.67 kB / 1.226 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.3204, allocations: 64.38 kB / 1.226 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001536/0.3219, allocations: 1.096 MB / 1.227 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.726e-05/0.322, allocations: 0 / 1.227 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.271e-05/0.322, allocations: 32 kB / 1.227 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001536/0.3222, allocations: 85.25 kB / 1.227 GB, free: 5.535 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001177/0.3234, allocations: 0.7542 MB / 1.228 GB, free: 4.781 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005498/0.3289, allocations: 5.87 MB / 1.234 GB, free: 14.49 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009902/0.3299, allocations: 0.567 MB / 1.234 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004261/0.3304, allocations: 322 kB / 1.235 GB, free: 13.59 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.056e-05/0.3304, allocations: 4.438 kB / 1.235 GB, free: 13.59 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/0.3305, allocations: 43 kB / 1.235 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=47): time 2.795e-06/0.3305, allocations: 0 / 1.235 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of matching and sorting (n=48): time 0.003853/0.3343, allocations: 1.978 MB / 1.236 GB, free: 11.46 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/0.3344, allocations: 59.83 kB / 1.237 GB, free: 11.39 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006777/0.3351, allocations: 0.5547 MB / 1.237 GB, free: 10.83 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.363e-05/0.3352, allocations: 33.7 kB / 1.237 GB, free: 10.79 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00027/0.3354, allocations: 422.9 kB / 1.238 GB, free: 10.38 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.3356, allocations: 173.6 kB / 1.238 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001942/0.3358, allocations: 122.5 kB / 1.238 GB, free: 10.08 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.336, allocations: 378.7 kB / 1.238 GB, free: 9.699 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003977/0.3364, allocations: 273.8 kB / 1.238 GB, free: 9.43 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005171/0.3369, allocations: 497 kB / 1.239 GB, free: 8.848 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009816/0.3379, allocations: 0.8093 MB / 1.24 GB, free: 7.945 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.3379, allocations: 4 kB / 1.24 GB, free: 7.941 MB / 0.9981 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001842/0.3397, allocations: 1.083 MB / 1.241 GB, free: 6.836 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.3398, allocations: 8 kB / 1.241 GB, free: 6.828 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.3398, allocations: 16.09 kB / 1.241 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008487/0.3407, allocations: 275.2 kB / 1.241 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004712/0.3411, allocations: 127.7 kB / 1.241 GB, free: 6.406 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6232/0.9643, allocations: 7.121 MB / 1.248 GB, free: 36.65 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007593/0.9651, allocations: 38.77 kB / 1.248 GB, free: 36.65 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.9652, allocations: 27.92 kB / 1.248 GB, free: 36.65 MB / 0.9981 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.0004553/0.9657, allocations: 255.7 kB / 1.248 GB, free: 36.54 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000184/0.9659, allocations: 71.47 kB / 1.248 GB, free: 36.54 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001702/0.9676, allocations: 0.8864 MB / 1.249 GB, free: 36.46 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.9676, allocations: 9.125 kB / 1.249 GB, free: 36.46 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/0.9677, allocations: 3.75 kB / 1.249 GB, free: 36.46 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.9677, allocations: 6.875 kB / 1.249 GB, free: 36.46 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002898/0.9706, allocations: 1.728 MB / 1.251 GB, free: 36.07 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.9706, allocations: 2.906 kB / 1.251 GB, free: 36.07 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000267/0.9709, allocations: 60.05 kB / 1.251 GB, free: 36.07 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007257/0.9716, allocations: 272.2 kB / 1.251 GB, free: 36.04 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-05/0.9717, allocations: 11.53 kB / 1.251 GB, free: 36.04 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004984/0.9766, allocations: 7.123 MB / 1.258 GB, free: 30.67 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.9767, allocations: 2.531 kB / 1.258 GB, free: 30.67 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/0.9781, allocations: 0.9909 MB / 1.259 GB, free: 30.42 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003517/0.9785, allocations: 188.3 kB / 1.259 GB, free: 30.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.9786, allocations: 21.47 kB / 1.26 GB, free: 30.29 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003997/0.979, allocations: 25.86 kB / 1.26 GB, free: 30.29 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.9791, allocations: 48.77 kB / 1.26 GB, free: 30.29 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.159e-05/0.9792, allocations: 16.28 kB / 1.26 GB, free: 30.29 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004542/0.9796, allocations: 386 kB / 1.26 GB, free: 30.19 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9796, allocations: 0 / 1.26 GB, free: 30.19 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000815/0.9805, allocations: 223.8 kB / 1.26 GB, free: 30.19 MB / 0.9981 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.001514/0.982, allocations: 1.539 MB / 1.262 GB, free: 29.39 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001863/0.9839, allocations: 1.274 MB / 1.263 GB, free: 28.89 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.9839, allocations: 0 / 1.263 GB, free: 28.89 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001159/0.985, allocations: 0.89 MB / 1.264 GB, free: 28.42 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.9862, allocations: 220.6 kB / 1.264 GB, free: 28.41 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01077/0.997, allocations: 6.361 MB / 1.27 GB, free: 25.95 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008642/0.9979, allocations: 1.011 MB / 1.271 GB, free: 25.24 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0005859/0.9985, allocations: 119.6 kB / 1.271 GB, free: 25.22 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003937/0.9989, allocations: 250 kB / 1.272 GB, free: 25.21 MB / 0.9981 GB Notification: Performance of SimCode: time 8.52e-07/0.9989, allocations: 0.6562 kB / 1.272 GB, free: 25.21 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07052/1.069, allocations: 17.68 MB / 1.289 GB, free: 23.88 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.21/11.28, allocations: 17.94 kB / 1.289 GB, free: 23.86 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches