Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.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,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine",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.007718/0.007718, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.002024/0.002024, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.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.557/2.557, allocations: 437 MB / 0.7105 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 63.89 kB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.2376, allocations: 151.6 MB / 1.166 GB, free: 7.336 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01275/0.2504, allocations: 10.9 MB / 1.177 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01218/0.2626, allocations: 8.795 MB / 1.185 GB, free: 3.555 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006654/0.2633, allocations: 59.62 kB / 1.185 GB, free: 3.496 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.004068/0.2674, allocations: 1.68 MB / 1.187 GB, free: 1.812 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.003481/0.2709, allocations: 1.561 MB / 1.189 GB, free: 252 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001517/0.2724, allocations: 0.6743 MB / 1.189 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.002223/0.2747, allocations: 2.282 MB / 1.192 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001566/0.2762, allocations: 1.387 MB / 1.193 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001233/0.2775, allocations: 1.008 MB / 1.194 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00121/0.2787, allocations: 1.019 MB / 1.195 GB, free: 9.824 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0002037/0.2789, allocations: 140 kB / 1.195 GB, free: 9.688 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001338/0.2803, allocations: 0.7955 MB / 1.196 GB, free: 8.891 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0005178/0.2808, allocations: 0.5725 MB / 1.196 GB, free: 8.316 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0008494/0.2817, allocations: 0.8861 MB / 1.197 GB, free: 7.426 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.002759/0.2844, allocations: 2.576 MB / 1.2 GB, free: 4.84 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2844, allocations: 4 kB / 1.2 GB, free: 4.836 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2845, allocations: 0 / 1.2 GB, free: 4.836 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.125e-05/0.2845, allocations: 0 / 1.2 GB, free: 4.836 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.003238/0.2877, allocations: 2.078 MB / 1.202 GB, free: 2.699 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.2878, allocations: 8.031 kB / 1.202 GB, free: 2.691 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002248/0.288, allocations: 186.1 kB / 1.202 GB, free: 2.5 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01145/0.2995, allocations: 2.059 MB / 1.204 GB, free: 448 kB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002193/0.3017, allocations: 1.225 MB / 1.205 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.852e-05/0.3018, allocations: 82.7 kB / 1.205 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002403/0.302, allocations: 119.9 kB / 1.205 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005392/0.3074, allocations: 2.478 MB / 1.208 GB, free: 12.33 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.877e-05/0.3075, allocations: 7.938 kB / 1.208 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000165/0.3076, allocations: 59.92 kB / 1.208 GB, free: 12.26 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003408/0.308, allocations: 126.1 kB / 1.208 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007479/0.3155, allocations: 2.537 MB / 1.21 GB, free: 9.59 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0129/0.3284, allocations: 10.04 MB / 1.22 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006552/0.335, allocations: 1.952 MB / 1.222 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002867/0.3378, allocations: 0.9737 MB / 1.223 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 4.492e-05/0.3379, allocations: 4.438 kB / 1.223 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.3379, allocations: 43 kB / 1.223 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=53): time 2.114e-06/0.3379, allocations: 0 / 1.223 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of matching and sorting (n=81): time 0.03215/0.3701, allocations: 8.748 MB / 1.232 GB, free: 3.082 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.581e-05/0.3702, allocations: 68 kB / 1.232 GB, free: 3.004 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001377/0.3716, allocations: 1.093 MB / 1.233 GB, free: 1.895 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 9.819e-05/0.3717, allocations: 41.7 kB / 1.233 GB, free: 1.848 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005185/0.3722, allocations: 0.7551 MB / 1.234 GB, free: 1.086 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002539/0.3724, allocations: 297.4 kB / 1.234 GB, free: 0.793 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004066/0.3729, allocations: 202.5 kB / 1.234 GB, free: 0.5898 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.373, allocations: 342 kB / 1.234 GB, free: 256 kB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003117/0.3761, allocations: 1.071 MB / 1.235 GB, free: 15.18 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003236/0.3794, allocations: 1.305 MB / 1.237 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006248/0.3856, allocations: 2.39 MB / 1.239 GB, free: 11.29 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3856, allocations: 0 / 1.239 GB, free: 11.29 MB / 0.9981 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008996/0.3946, allocations: 3.277 MB / 1.242 GB, free: 7.977 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.3947, allocations: 12 kB / 1.242 GB, free: 7.965 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.3947, allocations: 4 kB / 1.242 GB, free: 7.961 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002754/0.3975, allocations: 0.7917 MB / 1.243 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001919/0.3994, allocations: 419.3 kB / 1.243 GB, free: 6.734 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4721/0.8715, allocations: 15.91 MB / 1.259 GB, free: 70.45 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002313/0.8738, allocations: 290.5 kB / 1.259 GB, free: 70.43 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001356/0.874, allocations: 58.23 kB / 1.259 GB, free: 70.42 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,2,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,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.0006581/0.8747, allocations: 396.9 kB / 1.26 GB, free: 70.19 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002451/0.8749, allocations: 150.1 kB / 1.26 GB, free: 70.19 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009167/0.8841, allocations: 3.219 MB / 1.263 GB, free: 69.25 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.8841, allocations: 7.969 kB / 1.263 GB, free: 69.25 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.47e-05/0.8841, allocations: 7.984 kB / 1.263 GB, free: 69.25 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.958e-06/0.8842, allocations: 4.484 kB / 1.263 GB, free: 69.25 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01182/0.896, allocations: 4.894 MB / 1.268 GB, free: 67.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.896, allocations: 2.188 kB / 1.268 GB, free: 67.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001706/0.8977, allocations: 356.1 kB / 1.268 GB, free: 67.49 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002235/0.9, allocations: 0.6901 MB / 1.269 GB, free: 67.29 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/0.9001, allocations: 37.09 kB / 1.269 GB, free: 67.28 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0123/0.9124, allocations: 15.54 MB / 1.284 GB, free: 54.28 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.9124, allocations: 7 kB / 1.284 GB, free: 54.27 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008281/0.9207, allocations: 3.056 MB / 1.287 GB, free: 53.19 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008057/0.9215, allocations: 390.9 kB / 1.287 GB, free: 52.94 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002513/0.9218, allocations: 21.8 kB / 1.287 GB, free: 52.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001969/0.9238, allocations: 294.7 kB / 1.288 GB, free: 52.91 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002334/0.924, allocations: 77.81 kB / 1.288 GB, free: 52.89 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/0.9241, allocations: 37.22 kB / 1.288 GB, free: 52.89 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001032/0.9252, allocations: 0.7412 MB / 1.288 GB, free: 52.59 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9252, allocations: 4 kB / 1.288 GB, free: 52.58 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001482/0.9267, allocations: 435.7 kB / 1.289 GB, free: 52.54 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008396/0.9351, allocations: 3.623 MB / 1.292 GB, free: 50.93 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.008456/0.9435, allocations: 3.634 MB / 1.296 GB, free: 49.28 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.9436, allocations: 5.156 kB / 1.296 GB, free: 49.27 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004901/0.9485, allocations: 2.363 MB / 1.298 GB, free: 47.98 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002382/0.9509, allocations: 0.5218 MB / 1.299 GB, free: 47.82 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03336/0.9842, allocations: 15.88 MB / 1.314 GB, free: 41.27 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009606/0.9852, allocations: 1.389 MB / 1.316 GB, free: 40.23 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001382/0.9866, allocations: 375.2 kB / 1.316 GB, free: 40.04 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007203/0.9874, allocations: 0.5978 MB / 1.317 GB, free: 39.52 MB / 0.9981 GB Notification: Performance of SimCode: time 4.71e-07/0.9874, allocations: 5.031 kB / 1.317 GB, free: 39.51 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07023/1.058, allocations: 41.52 MB / 1.357 GB, free: 7.035 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.79/14.84, allocations: 8 kB / 1.357 GB, free: 7.027 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches