Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="Buildings_latest_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.001556/0.001556, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001842/0.001842, allocations: 194.9 kB / 16.53 MB, free: 6.664 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.379/1.379, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.688/2.688, allocations: 469.4 MB / 0.742 GB, free: 7.742 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 67.78 kB / 0.9083 GB, free: 34.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2582, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01311/0.2714, allocations: 10.91 MB / 1.074 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01258/0.284, allocations: 8.794 MB / 1.083 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001215/0.2852, allocations: 55.69 kB / 1.083 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004277/0.2896, allocations: 1.682 MB / 1.085 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.004194/0.2938, allocations: 1.531 MB / 1.086 GB, free: 7.469 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001764/0.2955, allocations: 0.6698 MB / 1.087 GB, free: 6.801 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002746/0.2983, allocations: 2.271 MB / 1.089 GB, free: 4.523 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001841/0.3002, allocations: 1.391 MB / 1.09 GB, free: 3.102 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001453/0.3016, allocations: 0.9731 MB / 1.091 GB, free: 2.125 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001555/0.3032, allocations: 1.031 MB / 1.092 GB, free: 1.09 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0003269/0.3035, allocations: 140 kB / 1.092 GB, free: 0.9531 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001581/0.3051, allocations: 0.7916 MB / 1.093 GB, free: 164 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0006349/0.3058, allocations: 0.561 MB / 1.094 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001192/0.307, allocations: 0.8862 MB / 1.095 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002882/0.3099, allocations: 2.542 MB / 1.097 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3099, allocations: 0 / 1.097 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3099, allocations: 3.938 kB / 1.097 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.973e-05/0.31, allocations: 0 / 1.097 GB, free: 12.15 MB / 0.8575 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.003716/0.3137, allocations: 2.025 MB / 1.099 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3137, allocations: 8.031 kB / 1.099 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002645/0.314, allocations: 194.1 kB / 1.099 GB, free: 9.863 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01128/0.3253, allocations: 2.042 MB / 1.101 GB, free: 7.816 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002092/0.3274, allocations: 1.122 MB / 1.102 GB, free: 6.637 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.44e-05/0.3275, allocations: 94.69 kB / 1.102 GB, free: 6.543 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003072/0.3278, allocations: 115.9 kB / 1.103 GB, free: 6.43 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005513/0.3333, allocations: 2.478 MB / 1.105 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.471e-05/0.3334, allocations: 15.83 kB / 1.105 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001639/0.3336, allocations: 51.98 kB / 1.105 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003492/0.3339, allocations: 126.1 kB / 1.105 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007464/0.3414, allocations: 2.541 MB / 1.108 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01316/0.3546, allocations: 10.07 MB / 1.117 GB, free: 6.328 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006308/0.3609, allocations: 1.96 MB / 1.119 GB, free: 4.34 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002754/0.3637, allocations: 0.966 MB / 1.12 GB, free: 3.371 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 4.161e-05/0.3638, allocations: 4.438 kB / 1.12 GB, free: 3.367 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/0.3638, allocations: 43 kB / 1.12 GB, free: 3.316 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=53): time 2.355e-06/0.3638, allocations: 0 / 1.12 GB, free: 3.316 MB / 0.8731 GB Notification: Performance of matching and sorting (n=81): time 0.03135/0.3952, allocations: 8.707 MB / 1.129 GB, free: 10.55 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/0.3952, allocations: 64 kB / 1.129 GB, free: 10.47 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00143/0.3967, allocations: 1.101 MB / 1.13 GB, free: 9.355 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001012/0.3968, allocations: 37.7 kB / 1.13 GB, free: 9.312 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004957/0.3973, allocations: 0.7379 MB / 1.131 GB, free: 8.566 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002628/0.3976, allocations: 279.9 kB / 1.131 GB, free: 8.289 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003872/0.398, allocations: 210.4 kB / 1.131 GB, free: 8.074 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.3981, allocations: 338 kB / 1.132 GB, free: 7.738 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002905/0.401, allocations: 1.071 MB / 1.133 GB, free: 6.668 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003116/0.4041, allocations: 1.309 MB / 1.134 GB, free: 5.27 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005835/0.41, allocations: 2.378 MB / 1.136 GB, free: 2.797 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.41, allocations: 4 kB / 1.136 GB, free: 2.793 MB / 0.8887 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008457/0.4184, allocations: 3.277 MB / 1.139 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.4185, allocations: 12.12 kB / 1.139 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.4185, allocations: 8 kB / 1.139 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002648/0.4212, allocations: 0.7872 MB / 1.14 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001852/0.423, allocations: 423.2 kB / 1.141 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01503/0.4381, allocations: 15.93 MB / 1.156 GB, free: 13.18 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002278/0.4404, allocations: 291.5 kB / 1.156 GB, free: 12.89 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001867/0.4406, allocations: 51.95 kB / 1.157 GB, free: 12.84 MB / 0.92 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.0008301/0.4414, allocations: 402.1 kB / 1.157 GB, free: 12.44 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003609/0.4418, allocations: 142.3 kB / 1.157 GB, free: 12.3 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008791/0.4506, allocations: 3.206 MB / 1.16 GB, free: 9.059 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/0.4506, allocations: 8 kB / 1.16 GB, free: 9.051 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.214e-05/0.4507, allocations: 8 kB / 1.16 GB, free: 9.043 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.4507, allocations: 7.922 kB / 1.16 GB, free: 9.035 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0112/0.4619, allocations: 4.909 MB / 1.165 GB, free: 4 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.4619, allocations: 4.031 kB / 1.165 GB, free: 3.996 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001644/0.4636, allocations: 355.4 kB / 1.165 GB, free: 3.648 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002287/0.4659, allocations: 0.6974 MB / 1.166 GB, free: 2.926 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.328e-05/0.466, allocations: 35.95 kB / 1.166 GB, free: 2.891 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0141/0.4801, allocations: 15.54 MB / 1.181 GB, free: 2.223 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.4801, allocations: 4 kB / 1.181 GB, free: 2.219 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008/0.4882, allocations: 3.042 MB / 1.184 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006755/0.4888, allocations: 383.2 kB / 1.185 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002758/0.4891, allocations: 19.98 kB / 1.185 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001947/0.4911, allocations: 299.4 kB / 1.185 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000239/0.4913, allocations: 76.5 kB / 1.185 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.337e-05/0.4914, allocations: 35.97 kB / 1.185 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001071/0.4925, allocations: 0.7444 MB / 1.186 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4925, allocations: 0 / 1.186 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001496/0.494, allocations: 436 kB / 1.186 GB, free: 13.11 MB / 0.9512 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.008699/0.5027, allocations: 3.614 MB / 1.19 GB, free: 9.402 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.009147/0.5119, allocations: 3.765 MB / 1.193 GB, free: 5.539 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/0.5119, allocations: 0 / 1.193 GB, free: 5.539 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.005233/0.5172, allocations: 2.364 MB / 1.196 GB, free: 3.074 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00252/0.5197, allocations: 0.5333 MB / 1.196 GB, free: 2.562 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03471/0.5544, allocations: 16.57 MB / 1.212 GB, free: 1.324 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00139/0.5559, allocations: 1.388 MB / 1.214 GB, free: 15.9 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001753/0.5576, allocations: 379.8 kB / 1.214 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008836/0.5585, allocations: 0.6008 MB / 1.215 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of SimCode: time 8.61e-07/0.5585, allocations: 0 / 1.215 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5327/1.091, allocations: 41.21 MB / 1.255 GB, free: 174.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.76/10.85, allocations: 2.438 kB / 1.255 GB, free: 174.9 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches