Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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_R,fileNamePrefix="Buildings_10_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_10_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.008724/0.008732, allocations: 105 kB / 15.74 MB, free: 6.039 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.002151/0.002151, allocations: 200.8 kB / 16.68 MB, free: 5.957 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.602/2.602, allocations: 437 MB / 0.7105 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 64.12 kB / 1.018 GB, free: 9.871 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.897/0.8985, allocations: 151.6 MB / 1.166 GB, free: 3.887 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.008257/0.9068, allocations: 6.732 MB / 1.173 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.004844/0.9117, allocations: 3.044 MB / 1.176 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006141/0.9123, allocations: 23.88 kB / 1.176 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002308/0.9147, allocations: 0.9505 MB / 1.177 GB, free: 9.094 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.001448/0.9162, allocations: 0.5168 MB / 1.177 GB, free: 8.574 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001192/0.9174, allocations: 426.3 kB / 1.178 GB, free: 8.16 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001674/0.9191, allocations: 1.228 MB / 1.179 GB, free: 6.926 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001072/0.9202, allocations: 0.6644 MB / 1.179 GB, free: 6.258 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008986/0.9211, allocations: 478.3 kB / 1.18 GB, free: 5.789 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007219/0.9218, allocations: 0.5214 MB / 1.18 GB, free: 5.266 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001725/0.922, allocations: 68 kB / 1.18 GB, free: 5.199 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008175/0.9228, allocations: 379.3 kB / 1.181 GB, free: 4.828 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003098/0.9231, allocations: 303.1 kB / 1.181 GB, free: 4.531 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0004955/0.9236, allocations: 449.7 kB / 1.182 GB, free: 4.09 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001686/0.9253, allocations: 1.219 MB / 1.183 GB, free: 2.867 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.9253, allocations: 0 / 1.183 GB, free: 2.867 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.562e-06/0.9253, allocations: 0 / 1.183 GB, free: 2.867 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.431e-05/0.9254, allocations: 0 / 1.183 GB, free: 2.867 MB / 0.9044 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.001978/0.9273, allocations: 1.165 MB / 1.184 GB, free: 1.648 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.9274, allocations: 12.86 kB / 1.184 GB, free: 1.637 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00021/0.9276, allocations: 122.7 kB / 1.184 GB, free: 1.508 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001527/0.9292, allocations: 243.5 kB / 1.184 GB, free: 1.27 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008853/0.9301, allocations: 0.5881 MB / 1.185 GB, free: 0.6367 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.233e-05/0.9301, allocations: 53.67 kB / 1.185 GB, free: 0.5859 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.9302, allocations: 60.36 kB / 1.185 GB, free: 0.5273 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.9318, allocations: 1.085 MB / 1.186 GB, free: 15.33 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.572e-05/0.9318, allocations: 7.938 kB / 1.186 GB, free: 15.32 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.751e-05/0.9319, allocations: 31.98 kB / 1.186 GB, free: 15.29 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002177/0.9321, allocations: 85.25 kB / 1.186 GB, free: 15.21 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.9332, allocations: 0.7465 MB / 1.187 GB, free: 14.46 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006136/0.9394, allocations: 5.878 MB / 1.193 GB, free: 8.16 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001067/0.9405, allocations: 0.5515 MB / 1.193 GB, free: 7.598 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005154/0.941, allocations: 326 kB / 1.193 GB, free: 7.277 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 4.588e-05/0.9411, allocations: 12.44 kB / 1.193 GB, free: 7.266 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.552e-05/0.9411, allocations: 38.98 kB / 1.193 GB, free: 7.219 MB / 0.92 GB Notification: Performance of pre-optimization done (n=47): time 3.397e-06/0.9411, allocations: 3.938 kB / 1.193 GB, free: 7.215 MB / 0.92 GB Notification: Performance of matching and sorting (n=48): time 0.004295/0.9454, allocations: 1.986 MB / 1.195 GB, free: 5.133 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.562e-05/0.9455, allocations: 55.84 kB / 1.195 GB, free: 5.066 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006675/0.9462, allocations: 0.5585 MB / 1.196 GB, free: 4.5 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.232e-05/0.9462, allocations: 33.7 kB / 1.196 GB, free: 4.461 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002928/0.9465, allocations: 418.9 kB / 1.196 GB, free: 4.043 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001393/0.9467, allocations: 169.6 kB / 1.197 GB, free: 3.875 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002005/0.9469, allocations: 126.6 kB / 1.197 GB, free: 3.742 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001681/0.947, allocations: 374.7 kB / 1.197 GB, free: 3.367 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004275/0.9475, allocations: 277.8 kB / 1.197 GB, free: 3.098 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006018/0.9481, allocations: 493 kB / 1.198 GB, free: 2.523 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/0.9491, allocations: 0.8094 MB / 1.199 GB, free: 1.621 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.9491, allocations: 0 / 1.199 GB, free: 1.621 MB / 0.92 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001771/0.9509, allocations: 1.087 MB / 1.2 GB, free: 0.5156 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.9509, allocations: 8 kB / 1.2 GB, free: 0.5078 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.9509, allocations: 8 kB / 1.2 GB, free: 0.5 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008698/0.9518, allocations: 275.6 kB / 1.2 GB, free: 224 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004583/0.9523, allocations: 127.8 kB / 1.2 GB, free: 96 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007138/0.9594, allocations: 7.146 MB / 1.207 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006396/0.9601, allocations: 31.97 kB / 1.207 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.347e-05/0.9602, allocations: 32 kB / 1.207 GB, free: 8.316 MB / 0.9356 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.0003828/0.9606, allocations: 265.5 kB / 1.207 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.9607, allocations: 75.16 kB / 1.207 GB, free: 7.973 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001557/0.9622, allocations: 0.8807 MB / 1.208 GB, free: 7.078 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.9623, allocations: 12 kB / 1.208 GB, free: 7.066 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.9623, allocations: 4 kB / 1.208 GB, free: 7.062 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.9623, allocations: 0 / 1.208 GB, free: 7.062 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002603/0.9649, allocations: 1.724 MB / 1.21 GB, free: 5.25 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.9649, allocations: 3.938 kB / 1.21 GB, free: 5.246 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002989/0.9652, allocations: 55.95 kB / 1.21 GB, free: 5.191 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007725/0.966, allocations: 275.3 kB / 1.21 GB, free: 4.91 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.602e-05/0.966, allocations: 8 kB / 1.21 GB, free: 4.902 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006919/0.973, allocations: 7.115 MB / 1.217 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.973, allocations: 4.031 kB / 1.217 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001722/0.9747, allocations: 0.9874 MB / 1.218 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003545/0.9751, allocations: 192.2 kB / 1.218 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.908e-05/0.9752, allocations: 15.92 kB / 1.218 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003784/0.9756, allocations: 27.97 kB / 1.218 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.9757, allocations: 47.88 kB / 1.218 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.432e-05/0.9758, allocations: 16 kB / 1.218 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0004444/0.9762, allocations: 383.1 kB / 1.219 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.41e-07/0.9762, allocations: 0 / 1.219 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0008408/0.9771, allocations: 224 kB / 1.219 GB, free: 11.29 MB / 0.9512 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.001936/0.979, allocations: 1.538 MB / 1.221 GB, free: 9.691 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002035/0.9811, allocations: 1.268 MB / 1.222 GB, free: 8.379 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.9811, allocations: 0 / 1.222 GB, free: 8.379 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001296/0.9824, allocations: 0.8971 MB / 1.223 GB, free: 7.43 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.9834, allocations: 236.8 kB / 1.223 GB, free: 7.203 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009291/0.9927, allocations: 6.339 MB / 1.229 GB, free: 0.5195 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000737/0.9935, allocations: 1.012 MB / 1.23 GB, free: 15.48 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0004265/0.994, allocations: 126 kB / 1.23 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003401/0.9943, allocations: 247.4 kB / 1.23 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of SimCode: time 8.71e-07/0.9943, allocations: 4 kB / 1.23 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05333/1.048, allocations: 17.37 MB / 1.247 GB, free: 14 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.34/11.39, allocations: 11.84 kB / 1.247 GB, free: 13.99 MB / 0.9825 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches