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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.0073/0.0073, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.002063/0.002064, allocations: 193.6 kB / 16.67 MB, free: 5.93 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.729/2.729, allocations: 482.4 MB / 0.7548 GB, free: 6.859 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 64.62 kB / 1.083 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2762, allocations: 162.2 MB / 1.241 GB, free: 9.281 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.008623/0.2848, allocations: 6.737 MB / 1.248 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.004579/0.2894, allocations: 3.04 MB / 1.251 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002423/0.2897, allocations: 23.88 kB / 1.251 GB, free: 15.44 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.002332/0.292, allocations: 0.9481 MB / 1.252 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0008816/0.2929, allocations: 0.5012 MB / 1.252 GB, free: 13.99 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008495/0.2938, allocations: 431 kB / 1.253 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001237/0.295, allocations: 1.22 MB / 1.254 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008642/0.2959, allocations: 0.6703 MB / 1.255 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005162/0.2964, allocations: 470.3 kB / 1.255 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006407/0.2971, allocations: 0.5215 MB / 1.256 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001029/0.2972, allocations: 64 kB / 1.256 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006145/0.2978, allocations: 379.3 kB / 1.256 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003562/0.2982, allocations: 311.1 kB / 1.256 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0005064/0.2987, allocations: 449.8 kB / 1.257 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001335/0.3, allocations: 1.214 MB / 1.258 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3001, allocations: 4 kB / 1.258 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3001, allocations: 0 / 1.258 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.41e-05/0.3001, allocations: 0 / 1.258 GB, free: 8.281 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.001933/0.302, allocations: 1.183 MB / 1.259 GB, free: 7.043 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.3021, allocations: 8.031 kB / 1.259 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001509/0.3022, allocations: 122.6 kB / 1.259 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001536/0.3038, allocations: 240.1 kB / 1.259 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008835/0.3047, allocations: 0.608 MB / 1.26 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.734e-05/0.3047, allocations: 45.69 kB / 1.26 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.3048, allocations: 68.36 kB / 1.26 GB, free: 5.914 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.3064, allocations: 1.085 MB / 1.261 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.934e-05/0.3064, allocations: 11.89 kB / 1.261 GB, free: 4.707 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.126e-05/0.3065, allocations: 24 kB / 1.261 GB, free: 4.684 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001575/0.3067, allocations: 85.25 kB / 1.261 GB, free: 4.598 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.3079, allocations: 0.7543 MB / 1.262 GB, free: 3.844 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005501/0.3134, allocations: 5.879 MB / 1.268 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.3144, allocations: 0.5632 MB / 1.268 GB, free: 12.97 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004636/0.3149, allocations: 322 kB / 1.269 GB, free: 12.65 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.438e-05/0.3149, allocations: 8.438 kB / 1.269 GB, free: 12.64 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.315, allocations: 38.98 kB / 1.269 GB, free: 12.6 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=47): time 1.583e-06/0.315, allocations: 0 / 1.269 GB, free: 12.6 MB / 0.9981 GB Notification: Performance of matching and sorting (n=48): time 0.003918/0.3189, allocations: 1.988 MB / 1.271 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.319, allocations: 63.78 kB / 1.271 GB, free: 10.44 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006256/0.3196, allocations: 0.5586 MB / 1.271 GB, free: 9.871 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.885e-05/0.3196, allocations: 33.7 kB / 1.271 GB, free: 9.832 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002964/0.3199, allocations: 424.1 kB / 1.272 GB, free: 9.41 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.3201, allocations: 182.4 kB / 1.272 GB, free: 9.23 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002046/0.3203, allocations: 130.6 kB / 1.272 GB, free: 9.098 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001815/0.3205, allocations: 374.7 kB / 1.272 GB, free: 8.723 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004279/0.3209, allocations: 273.8 kB / 1.273 GB, free: 8.453 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005885/0.3215, allocations: 497.5 kB / 1.273 GB, free: 7.875 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.3226, allocations: 0.8133 MB / 1.274 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.3226, allocations: 0 / 1.274 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001843/0.3245, allocations: 1.084 MB / 1.275 GB, free: 5.859 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.3245, allocations: 8 kB / 1.275 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.3245, allocations: 16.03 kB / 1.275 GB, free: 5.836 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008435/0.3254, allocations: 275.2 kB / 1.275 GB, free: 5.555 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004856/0.3259, allocations: 127.8 kB / 1.275 GB, free: 5.43 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006972/0.3328, allocations: 7.15 MB / 1.282 GB, free: 13.72 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004996/0.3334, allocations: 31.97 kB / 1.282 GB, free: 13.69 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.224e-05/0.3334, allocations: 32 kB / 1.282 GB, free: 13.66 MB / 1.014 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.0003248/0.3337, allocations: 261.4 kB / 1.283 GB, free: 13.39 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.3339, allocations: 75.58 kB / 1.283 GB, free: 13.32 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00164/0.3355, allocations: 0.8886 MB / 1.284 GB, free: 12.41 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.3355, allocations: 4 kB / 1.284 GB, free: 12.4 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.3355, allocations: 4 kB / 1.284 GB, free: 12.4 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3356, allocations: 0 / 1.284 GB, free: 12.4 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002645/0.3382, allocations: 1.717 MB / 1.285 GB, free: 10.59 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.3382, allocations: 16.06 kB / 1.285 GB, free: 10.58 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002731/0.3385, allocations: 59.89 kB / 1.285 GB, free: 10.52 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007518/0.3393, allocations: 263.2 kB / 1.286 GB, free: 10.25 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.334e-05/0.3393, allocations: 12 kB / 1.286 GB, free: 10.24 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006842/0.3462, allocations: 7.132 MB / 1.293 GB, free: 2.551 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/0.3462, allocations: 4.031 kB / 1.293 GB, free: 2.547 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001564/0.3477, allocations: 0.9877 MB / 1.294 GB, free: 1.512 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002504/0.348, allocations: 196.6 kB / 1.294 GB, free: 1.301 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.436e-05/0.3481, allocations: 11.94 kB / 1.294 GB, free: 1.289 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003658/0.3485, allocations: 31.91 kB / 1.294 GB, free: 1.258 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.935e-05/0.3486, allocations: 47.94 kB / 1.294 GB, free: 1.211 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.542e-05/0.3486, allocations: 16 kB / 1.294 GB, free: 1.195 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0004333/0.3491, allocations: 379.1 kB / 1.294 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3491, allocations: 0 / 1.294 GB, free: 0.8281 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0007253/0.3498, allocations: 228 kB / 1.294 GB, free: 0.6055 MB / 1.014 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.001897/0.3517, allocations: 1.54 MB / 1.296 GB, free: 15 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001986/0.3537, allocations: 1.279 MB / 1.297 GB, free: 13.68 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3537, allocations: 0 / 1.297 GB, free: 13.68 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001326/0.355, allocations: 0.8854 MB / 1.298 GB, free: 12.74 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009927/0.3561, allocations: 220.8 kB / 1.298 GB, free: 12.53 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008556/0.3646, allocations: 6.391 MB / 1.305 GB, free: 5.805 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006568/0.3653, allocations: 1.016 MB / 1.306 GB, free: 4.758 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0003523/0.3657, allocations: 126 kB / 1.306 GB, free: 4.633 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003339/0.366, allocations: 243.4 kB / 1.306 GB, free: 4.395 MB / 1.029 GB Notification: Performance of SimCode: time 2.5e-07/0.366, allocations: 0 / 1.306 GB, free: 4.395 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.994/2.36, allocations: 17.35 MB / 1.323 GB, free: 3.332 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/13.88, allocations: 28.77 kB / 1.323 GB, free: 3.309 MB / 1.045 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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