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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001202/0.001202, 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.001174/0.001174, allocations: 192.3 kB / 16.13 MB, free: 6.703 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.224/1.224, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.426/2.426, allocations: 461.8 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 70.38 kB / 0.8985 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2292, allocations: 157.4 MB / 1.052 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.007586/0.2368, allocations: 6.739 MB / 1.059 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004261/0.2411, allocations: 3.052 MB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005064/0.2416, allocations: 23.81 kB / 1.062 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.002143/0.2438, allocations: 0.8905 MB / 1.063 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001028/0.2448, allocations: 477.7 kB / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008851/0.2457, allocations: 383.3 kB / 1.063 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001539/0.2472, allocations: 1.583 MB / 1.065 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009558/0.2482, allocations: 0.6445 MB / 1.066 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006471/0.2489, allocations: 426.2 kB / 1.066 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007236/0.2496, allocations: 0.5253 MB / 1.067 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001358/0.2497, allocations: 48 kB / 1.067 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007606/0.2505, allocations: 455.1 kB / 1.067 GB, free: 8.957 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0003128/0.2508, allocations: 291.2 kB / 1.067 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0005073/0.2513, allocations: 425.7 kB / 1.068 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.00114/0.2525, allocations: 1.207 MB / 1.069 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2525, allocations: 0 / 1.069 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.71e-07/0.2525, allocations: 0 / 1.069 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.989e-05/0.2525, allocations: 0 / 1.069 GB, free: 7.043 MB / 0.8262 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.001902/0.2545, allocations: 1.161 MB / 1.07 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.2545, allocations: 15.97 kB / 1.07 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001463/0.2547, allocations: 118.7 kB / 1.07 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001511/0.2562, allocations: 239.6 kB / 1.07 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007259/0.2569, allocations: 0.5414 MB / 1.071 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.506e-05/0.257, allocations: 57.61 kB / 1.071 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.2571, allocations: 64.36 kB / 1.071 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.2584, allocations: 1.081 MB / 1.072 GB, free: 3.566 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.2585, allocations: 7.844 kB / 1.072 GB, free: 3.559 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.909e-05/0.2585, allocations: 35.98 kB / 1.072 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001364/0.2587, allocations: 85.25 kB / 1.072 GB, free: 3.438 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.2598, allocations: 0.7465 MB / 1.073 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004641/0.2644, allocations: 5.886 MB / 1.079 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008911/0.2653, allocations: 0.5691 MB / 1.079 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004022/0.2657, allocations: 324.3 kB / 1.08 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.657e-05/0.2658, allocations: 12.38 kB / 1.08 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.2658, allocations: 39 kB / 1.08 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=47): time 1.733e-06/0.2658, allocations: 0 / 1.08 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48): time 0.003443/0.2693, allocations: 1.982 MB / 1.082 GB, free: 9.348 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/0.2693, allocations: 59.84 kB / 1.082 GB, free: 9.273 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005434/0.2699, allocations: 0.5509 MB / 1.082 GB, free: 8.711 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.391e-05/0.2699, allocations: 37.7 kB / 1.082 GB, free: 8.668 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002252/0.2701, allocations: 410.9 kB / 1.083 GB, free: 8.258 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.2703, allocations: 173.6 kB / 1.083 GB, free: 8.086 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001727/0.2704, allocations: 126.5 kB / 1.083 GB, free: 7.957 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.2706, allocations: 378.6 kB / 1.083 GB, free: 7.578 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000378/0.271, allocations: 273.8 kB / 1.083 GB, free: 7.309 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000493/0.2715, allocations: 493 kB / 1.084 GB, free: 6.73 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000907/0.2724, allocations: 0.8171 MB / 1.085 GB, free: 5.82 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.634e-06/0.2724, allocations: 0 / 1.085 GB, free: 5.82 MB / 0.8419 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001669/0.2741, allocations: 1.091 MB / 1.086 GB, free: 4.711 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.2741, allocations: 8 kB / 1.086 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.2741, allocations: 8 kB / 1.086 GB, free: 4.695 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008017/0.2749, allocations: 279.3 kB / 1.086 GB, free: 4.41 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004438/0.2754, allocations: 127.8 kB / 1.086 GB, free: 4.285 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005395/0.2808, allocations: 6.591 MB / 1.093 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00045/0.2812, allocations: 39.97 kB / 1.093 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.873e-05/0.2813, allocations: 28 kB / 1.093 GB, free: 13.09 MB / 0.8575 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.0002706/0.2816, allocations: 257.5 kB / 1.093 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.2817, allocations: 71.16 kB / 1.093 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001397/0.2831, allocations: 0.9002 MB / 1.094 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.2831, allocations: 4 kB / 1.094 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.2831, allocations: 4 kB / 1.094 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.2831, allocations: 3.984 kB / 1.094 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002279/0.2854, allocations: 1.72 MB / 1.096 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.2854, allocations: 3.984 kB / 1.096 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002386/0.2857, allocations: 63.89 kB / 1.096 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000708/0.2864, allocations: 267.3 kB / 1.096 GB, free: 9.684 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.312e-05/0.2864, allocations: 12 kB / 1.096 GB, free: 9.672 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005276/0.2917, allocations: 6.576 MB / 1.102 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2917, allocations: 0 / 1.102 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/0.2931, allocations: 0.9877 MB / 1.103 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002194/0.2933, allocations: 188.2 kB / 1.104 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.132e-05/0.2934, allocations: 24.05 kB / 1.104 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003361/0.2937, allocations: 35.97 kB / 1.104 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.119e-05/0.2938, allocations: 39.94 kB / 1.104 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.2938, allocations: 16 kB / 1.104 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003668/0.2942, allocations: 387.1 kB / 1.104 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2942, allocations: 0 / 1.104 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006629/0.2949, allocations: 220 kB / 1.104 GB, free: 0.6211 MB / 0.8575 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.001602/0.2965, allocations: 1.552 MB / 1.106 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001697/0.2982, allocations: 1.264 MB / 1.107 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/0.2982, allocations: 4 kB / 1.107 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.2993, allocations: 0.8894 MB / 1.108 GB, free: 12.74 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009116/0.3002, allocations: 209.5 kB / 1.108 GB, free: 12.54 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007829/0.3081, allocations: 6.804 MB / 1.115 GB, free: 5.414 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005011/0.3086, allocations: 1.016 MB / 1.116 GB, free: 4.371 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003837/0.309, allocations: 118 kB / 1.116 GB, free: 4.254 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002789/0.3093, allocations: 255.3 kB / 1.116 GB, free: 4.004 MB / 0.8731 GB Notification: Performance of SimCode: time 3.11e-07/0.3093, allocations: 0 / 1.116 GB, free: 4.004 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7432/1.052, allocations: 16.58 MB / 1.132 GB, free: 3.707 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002188/1.053, allocations: 235.3 kB / 1.132 GB, free: 3.449 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.892/2.945, allocations: 3.5 kB / 1.132 GB, free: 3.449 MB / 0.8887 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