Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.004961/0.004961, allocations: 99.12 kB / 15.73 MB, free: 6.062 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.001405/0.001405, allocations: 201.5 kB / 16.68 MB, free: 5.977 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.518/2.518, allocations: 469.8 MB / 0.7425 GB, free: 7.309 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001718/0.001718, allocations: 59.91 kB / 1.065 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.248, allocations: 159.1 MB / 1.22 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.00771/0.2557, allocations: 6.746 MB / 1.227 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003964/0.2597, allocations: 3.043 MB / 1.23 GB, free: 4.457 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002097/0.2599, allocations: 27.81 kB / 1.23 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.002049/0.262, allocations: 0.9446 MB / 1.231 GB, free: 3.484 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0007562/0.2627, allocations: 0.5011 MB / 1.231 GB, free: 2.98 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007284/0.2635, allocations: 427.1 kB / 1.232 GB, free: 2.562 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001087/0.2646, allocations: 1.22 MB / 1.233 GB, free: 1.34 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007681/0.2653, allocations: 0.666 MB / 1.233 GB, free: 0.668 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004437/0.2658, allocations: 474.2 kB / 1.234 GB, free: 208 kB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005876/0.2664, allocations: 0.5175 MB / 1.234 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 9.449e-05/0.2665, allocations: 72 kB / 1.234 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005275/0.267, allocations: 379.3 kB / 1.235 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002765/0.2673, allocations: 311.1 kB / 1.235 GB, free: 14.94 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003977/0.2677, allocations: 445.8 kB / 1.236 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001127/0.2688, allocations: 1.214 MB / 1.237 GB, free: 13.28 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.2689, allocations: 7.984 kB / 1.237 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of FrontEnd: time 9.91e-07/0.2689, allocations: 0 / 1.237 GB, free: 13.27 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.636e-06/0.2689, allocations: 0 / 1.237 GB, free: 13.27 MB / 0.9981 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.001625/0.2705, allocations: 1.187 MB / 1.238 GB, free: 12.03 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 2.977e-05/0.2705, allocations: 8.031 kB / 1.238 GB, free: 12.02 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001325/0.2707, allocations: 118.7 kB / 1.238 GB, free: 11.9 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001387/0.2721, allocations: 248 kB / 1.238 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007854/0.2729, allocations: 0.5848 MB / 1.239 GB, free: 11.04 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.098e-05/0.2729, allocations: 53.67 kB / 1.239 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.182e-05/0.273, allocations: 68.31 kB / 1.239 GB, free: 10.92 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.2744, allocations: 1.093 MB / 1.24 GB, free: 9.719 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.2744, allocations: 4 kB / 1.24 GB, free: 9.715 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.589e-05/0.2745, allocations: 31.98 kB / 1.24 GB, free: 9.684 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001337/0.2746, allocations: 85.25 kB / 1.24 GB, free: 9.598 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.2757, allocations: 0.7503 MB / 1.241 GB, free: 8.844 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004934/0.2806, allocations: 5.89 MB / 1.247 GB, free: 2.527 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009088/0.2816, allocations: 0.5577 MB / 1.247 GB, free: 1.965 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004239/0.282, allocations: 322 kB / 1.247 GB, free: 1.645 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.103e-05/0.282, allocations: 4.438 kB / 1.247 GB, free: 1.641 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.2821, allocations: 46.98 kB / 1.247 GB, free: 1.586 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=47): time 1.452e-06/0.2821, allocations: 0 / 1.247 GB, free: 1.586 MB / 0.9981 GB Notification: Performance of matching and sorting (n=48): time 0.4297/0.7118, allocations: 1.985 MB / 1.249 GB, free: 30 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.506e-05/0.7118, allocations: 58.14 kB / 1.249 GB, free: 29.94 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005882/0.7124, allocations: 0.5624 MB / 1.25 GB, free: 29.81 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.7125, allocations: 34.77 kB / 1.25 GB, free: 29.78 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001873/0.7126, allocations: 426.6 kB / 1.25 GB, free: 29.68 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.419e-05/0.7127, allocations: 178.7 kB / 1.251 GB, free: 29.59 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000174/0.7129, allocations: 123 kB / 1.251 GB, free: 29.57 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 7.409e-05/0.713, allocations: 372.7 kB / 1.251 GB, free: 29.26 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003562/0.7134, allocations: 277.9 kB / 1.251 GB, free: 29.25 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004202/0.7138, allocations: 495.6 kB / 1.252 GB, free: 29 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007874/0.7146, allocations: 0.8094 MB / 1.253 GB, free: 28.75 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.7146, allocations: 2.5 kB / 1.253 GB, free: 28.75 MB / 0.9981 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001559/0.7162, allocations: 1.093 MB / 1.254 GB, free: 28.58 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.7162, allocations: 8.469 kB / 1.254 GB, free: 28.58 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.7162, allocations: 8.5 kB / 1.254 GB, free: 28.58 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007351/0.7169, allocations: 280.1 kB / 1.254 GB, free: 28.54 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004248/0.7174, allocations: 126.3 kB / 1.254 GB, free: 28.54 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004183/0.7216, allocations: 7.134 MB / 1.261 GB, free: 23.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004487/0.722, allocations: 41.81 kB / 1.261 GB, free: 23.09 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.701e-05/0.7221, allocations: 27.06 kB / 1.261 GB, free: 23.09 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 (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.0002189/0.7223, allocations: 263.8 kB / 1.261 GB, free: 22.96 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.819e-05/0.7224, allocations: 74.78 kB / 1.261 GB, free: 22.92 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001175/0.7236, allocations: 0.8879 MB / 1.262 GB, free: 22.82 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.7236, allocations: 12.45 kB / 1.262 GB, free: 22.82 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.7236, allocations: 5.188 kB / 1.262 GB, free: 22.82 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.7236, allocations: 2.438 kB / 1.262 GB, free: 22.82 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001958/0.7256, allocations: 1.723 MB / 1.264 GB, free: 22.39 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.7256, allocations: 2.625 kB / 1.264 GB, free: 22.39 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000225/0.7258, allocations: 58.66 kB / 1.264 GB, free: 22.39 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006175/0.7264, allocations: 268.7 kB / 1.264 GB, free: 22.35 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.655e-05/0.7265, allocations: 11.97 kB / 1.264 GB, free: 22.35 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004189/0.7307, allocations: 7.133 MB / 1.271 GB, free: 16.46 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.7307, allocations: 0.6562 kB / 1.271 GB, free: 16.46 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.732, allocations: 0.9866 MB / 1.272 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001968/0.7322, allocations: 206.2 kB / 1.272 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.484e-05/0.7323, allocations: 8.438 kB / 1.272 GB, free: 15.77 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003309/0.7326, allocations: 30.28 kB / 1.273 GB, free: 15.77 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.421e-05/0.7327, allocations: 44.23 kB / 1.273 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.343e-05/0.7328, allocations: 13.05 kB / 1.273 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003851/0.7331, allocations: 388.4 kB / 1.273 GB, free: 15.58 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7332, allocations: 4 kB / 1.273 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0007026/0.7339, allocations: 225 kB / 1.273 GB, free: 15.55 MB / 0.9981 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.001391/0.7353, allocations: 1.549 MB / 1.275 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00162/0.7369, allocations: 1.27 MB / 1.276 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.7369, allocations: 0.5312 kB / 1.276 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.7379, allocations: 0.8921 MB / 1.277 GB, free: 13.14 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009047/0.7388, allocations: 222.6 kB / 1.277 GB, free: 13.07 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00725/0.7461, allocations: 6.372 MB / 1.283 GB, free: 9.406 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000438/0.7466, allocations: 1.011 MB / 1.284 GB, free: 8.664 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003762/0.7469, allocations: 121.4 kB / 1.284 GB, free: 8.641 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002304/0.7472, allocations: 250.1 kB / 1.285 GB, free: 8.449 MB / 0.9981 GB Notification: Performance of SimCode: time 6.61e-07/0.7472, allocations: 1.125 kB / 1.285 GB, free: 8.449 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 8.062/8.81, allocations: 17.38 MB / 1.302 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.2/23.01, allocations: 20.19 kB / 1.302 GB, free: 7.055 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_11_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.fmu > Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches