Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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_L,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L",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.007345/0.007345, allocations: 98.2 kB / 15.73 MB, free: 6.004 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.00185/0.00185, allocations: 193.3 kB / 16.67 MB, free: 5.934 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.349/1.349, 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 12.0.0-master/package.mo): time 2.748/2.748, allocations: 472.7 MB / 0.7453 GB, free: 4.496 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 63.91 kB / 1.069 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2639, allocations: 159.9 MB / 1.225 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.007435/0.2714, allocations: 6.08 MB / 1.231 GB, free: 3.539 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.004668/0.2761, allocations: 3.153 MB / 1.234 GB, free: 384 kB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000478/0.2766, allocations: 35.75 kB / 1.234 GB, free: 348 kB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.002348/0.279, allocations: 0.9259 MB / 1.235 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.001107/0.2801, allocations: 493.6 kB / 1.236 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.2812, allocations: 489.8 kB / 1.236 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.001189/0.2824, allocations: 1.096 MB / 1.237 GB, free: 13.35 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008378/0.2832, allocations: 0.6389 MB / 1.238 GB, free: 12.7 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006123/0.2838, allocations: 434.4 kB / 1.238 GB, free: 12.28 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006017/0.2845, allocations: 474.2 kB / 1.239 GB, free: 11.81 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001085/0.2846, allocations: 60 kB / 1.239 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008024/0.2854, allocations: 491 kB / 1.239 GB, free: 11.27 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002733/0.2857, allocations: 291.2 kB / 1.239 GB, free: 10.99 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004077/0.2861, allocations: 401.9 kB / 1.24 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001301/0.2874, allocations: 1.179 MB / 1.241 GB, free: 9.41 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2874, allocations: 4 kB / 1.241 GB, free: 9.406 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.824e-06/0.2874, allocations: 0 / 1.241 GB, free: 9.406 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.27e-05/0.2875, allocations: 0 / 1.241 GB, free: 9.406 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.00168/0.2891, allocations: 1.07 MB / 1.242 GB, free: 8.281 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2892, allocations: 12.03 kB / 1.242 GB, free: 8.27 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001292/0.2893, allocations: 118.7 kB / 1.242 GB, free: 8.145 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001462/0.2908, allocations: 220.2 kB / 1.242 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008462/0.2916, allocations: 0.5926 MB / 1.243 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.556e-05/0.2917, allocations: 45.67 kB / 1.243 GB, free: 7.258 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.809e-05/0.2918, allocations: 60.36 kB / 1.243 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.2931, allocations: 1.034 MB / 1.244 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.338e-05/0.2932, allocations: 11.89 kB / 1.244 GB, free: 6.039 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.733e-05/0.2932, allocations: 31.98 kB / 1.244 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.33e-05/0.2933, allocations: 69.27 kB / 1.244 GB, free: 5.941 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.2943, allocations: 0.6918 MB / 1.245 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.508/0.8024, allocations: 5.737 MB / 1.25 GB, free: 23.54 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008796/0.8033, allocations: 0.5985 MB / 1.251 GB, free: 23.33 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008742/0.8042, allocations: 426 kB / 1.251 GB, free: 23.32 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.488e-05/0.8042, allocations: 4.406 kB / 1.251 GB, free: 23.32 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.845e-05/0.8043, allocations: 40.27 kB / 1.251 GB, free: 23.29 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=41): time 2.955e-06/0.8043, allocations: 0.5312 kB / 1.251 GB, free: 23.29 MB / 0.9981 GB Notification: Performance of matching and sorting (n=42): time 0.004366/0.8087, allocations: 2.023 MB / 1.253 GB, free: 22.78 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.385e-05/0.8087, allocations: 59.53 kB / 1.254 GB, free: 22.72 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004659/0.8092, allocations: 455.8 kB / 1.254 GB, free: 22.6 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.8092, allocations: 35.23 kB / 1.254 GB, free: 22.57 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001887/0.8094, allocations: 395.7 kB / 1.254 GB, free: 22.38 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.207e-05/0.8095, allocations: 155.7 kB / 1.255 GB, free: 22.3 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/0.8097, allocations: 115.8 kB / 1.255 GB, free: 22.28 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 8.146e-05/0.8097, allocations: 367.5 kB / 1.255 GB, free: 21.96 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003421/0.8101, allocations: 241.2 kB / 1.255 GB, free: 21.96 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004193/0.8105, allocations: 458.2 kB / 1.256 GB, free: 21.71 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007554/0.8113, allocations: 0.7445 MB / 1.256 GB, free: 21.46 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.8113, allocations: 1.969 kB / 1.256 GB, free: 21.46 MB / 0.9981 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001692/0.813, allocations: 1.045 MB / 1.257 GB, free: 21.31 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.813, allocations: 7.812 kB / 1.257 GB, free: 21.31 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.813, allocations: 6.938 kB / 1.257 GB, free: 21.31 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009183/0.814, allocations: 319.4 kB / 1.258 GB, free: 21.27 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002807/0.8143, allocations: 98.73 kB / 1.258 GB, free: 21.26 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005029/0.8193, allocations: 7.472 MB / 1.265 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004089/0.8197, allocations: 33.8 kB / 1.265 GB, free: 15.44 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.631e-05/0.8198, allocations: 32.16 kB / 1.265 GB, free: 15.43 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 (53): * Single equations (assignments): 49 * 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 {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002693/0.82, allocations: 242 kB / 1.265 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.593e-05/0.8201, allocations: 63.84 kB / 1.265 GB, free: 15.22 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001502/0.8216, allocations: 0.8898 MB / 1.266 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.8217, allocations: 7.188 kB / 1.266 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.8217, allocations: 7.812 kB / 1.266 GB, free: 14.83 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.8217, allocations: 9.719 kB / 1.266 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002259/0.8239, allocations: 1.674 MB / 1.268 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.824, allocations: 2.875 kB / 1.268 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.8241, allocations: 42.42 kB / 1.268 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008227/0.8249, allocations: 316.6 kB / 1.268 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.78e-05/0.825, allocations: 10.78 kB / 1.268 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005657/0.8306, allocations: 7.464 MB / 1.276 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.8307, allocations: 1.594 kB / 1.276 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001524/0.8322, allocations: 1 MB / 1.277 GB, free: 6.996 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002034/0.8324, allocations: 174.3 kB / 1.277 GB, free: 6.855 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.453e-05/0.8325, allocations: 10.84 kB / 1.277 GB, free: 6.852 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002687/0.8328, allocations: 24.83 kB / 1.277 GB, free: 6.844 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.8329, allocations: 39.05 kB / 1.277 GB, free: 6.836 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.847e-05/0.8329, allocations: 17.06 kB / 1.277 GB, free: 6.828 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000303/0.8332, allocations: 306.8 kB / 1.277 GB, free: 6.684 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8332, allocations: 4 kB / 1.277 GB, free: 6.68 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0008021/0.834, allocations: 193.8 kB / 1.277 GB, free: 6.66 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 (23): * Single equations (assignments): 19 * 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 {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,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.001769/0.8358, allocations: 1.543 MB / 1.279 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001947/0.8378, allocations: 1.205 MB / 1.28 GB, free: 4.879 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.8378, allocations: 0.6562 kB / 1.28 GB, free: 4.879 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009981/0.8388, allocations: 0.8542 MB / 1.281 GB, free: 4.273 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000935/0.8397, allocations: 208 kB / 1.281 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006896/0.8466, allocations: 5.845 MB / 1.287 GB, free: 0.7852 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004693/0.8471, allocations: 0.9926 MB / 1.288 GB, free: 52 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003055/0.8474, allocations: 99.64 kB / 1.288 GB, free: 32 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006422/0.8481, allocations: 260.3 kB / 1.288 GB, free: 15.99 MB / 1.014 GB Notification: Performance of SimCode: time 1.292e-06/0.8481, allocations: 0 / 1.288 GB, free: 15.99 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04528/0.8934, allocations: 15.26 MB / 1.303 GB, free: 14.76 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.867/10.76, allocations: 18.56 kB / 1.303 GB, free: 14.75 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_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_L.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches