Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_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.0009475/0.0009475, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007935/0.007936, allocations: 170.8 kB / 16.26 MB, free: 6.676 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.3/1.3, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.237/2.237, allocations: 390.9 MB / 0.6664 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003513/0.0003513, allocations: 12 kB / 0.8161 GB, free: 13.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.618/0.6184, allocations: 142.4 MB / 0.9552 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01196/0.6304, allocations: 13.42 MB / 0.9683 GB, free: 13.44 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01349/0.6439, allocations: 9.269 MB / 0.9773 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.645, allocations: 50.88 kB / 0.9774 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0007156/0.6458, allocations: 284.8 kB / 0.9777 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.003488/0.6493, allocations: 1.412 MB / 0.979 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001517/0.6508, allocations: 0.6852 MB / 0.9797 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003353/0.6541, allocations: 3.178 MB / 0.9828 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003008/0.6572, allocations: 1.969 MB / 0.9847 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001263/0.6584, allocations: 0.8752 MB / 0.9856 GB, free: 84 kB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001271/0.6597, allocations: 1.054 MB / 0.9866 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001417/0.6599, allocations: 72 kB / 0.9867 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001448/0.6613, allocations: 0.8655 MB / 0.9875 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0004435/0.6618, allocations: 0.51 MB / 0.988 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0009327/0.6627, allocations: 0.8447 MB / 0.9888 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0032/0.6659, allocations: 2.663 MB / 0.9914 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.666, allocations: 0 / 0.9914 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.673e-06/0.666, allocations: 0 / 0.9914 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.831e-05/0.666, allocations: 0 / 0.9914 GB, free: 10.05 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.003225/0.6692, allocations: 1.808 MB / 0.9932 GB, free: 8.184 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.6693, allocations: 12.03 kB / 0.9932 GB, free: 8.172 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002352/0.6695, allocations: 198.3 kB / 0.9934 GB, free: 7.969 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01177/0.6813, allocations: 2.155 MB / 0.9955 GB, free: 5.809 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002149/0.6835, allocations: 1.197 MB / 0.9967 GB, free: 4.555 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.5e-05/0.6835, allocations: 90.73 kB / 0.9968 GB, free: 4.465 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002411/0.6838, allocations: 131.8 kB / 0.9969 GB, free: 4.336 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005535/0.6893, allocations: 2.7 MB / 0.9995 GB, free: 1.488 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.699e-05/0.6894, allocations: 4 kB / 0.9995 GB, free: 1.484 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001656/0.6896, allocations: 59.92 kB / 0.9996 GB, free: 1.426 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006339/0.6902, allocations: 178.1 kB / 0.9998 GB, free: 1.25 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007619/0.6978, allocations: 2.846 MB / 1.003 GB, free: 14.39 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01358/0.7114, allocations: 10.57 MB / 1.013 GB, free: 3.246 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006927/0.7184, allocations: 2.579 MB / 1.015 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003205/0.7216, allocations: 1.303 MB / 1.017 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 5.759e-05/0.7217, allocations: 12.98 kB / 1.017 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.7217, allocations: 43.56 kB / 1.017 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=89): time 2.404e-06/0.7217, allocations: 3.938 kB / 1.017 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=131): time 0.04602/0.7677, allocations: 13.44 MB / 1.03 GB, free: 1.562 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/0.7678, allocations: 64.72 kB / 1.03 GB, free: 1.484 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001442/0.7693, allocations: 1.113 MB / 1.031 GB, free: 364 kB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0001517/0.7694, allocations: 49.7 kB / 1.031 GB, free: 308 kB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004912/0.7699, allocations: 0.7078 MB / 1.032 GB, free: 15.58 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004119/0.7704, allocations: 461.3 kB / 1.032 GB, free: 15.13 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002145/0.7706, allocations: 113.7 kB / 1.032 GB, free: 15.01 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.7707, allocations: 357.9 kB / 1.033 GB, free: 14.66 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0034/0.7741, allocations: 1.362 MB / 1.034 GB, free: 13.29 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003538/0.7777, allocations: 1.624 MB / 1.036 GB, free: 11.57 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006943/0.7846, allocations: 3.034 MB / 1.039 GB, free: 8.445 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.7846, allocations: 0 / 1.039 GB, free: 8.445 MB / 0.795 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01188/0.7965, allocations: 4.489 MB / 1.043 GB, free: 3.902 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.7966, allocations: 8 kB / 1.043 GB, free: 3.895 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.709e-05/0.7966, allocations: 8 kB / 1.043 GB, free: 3.887 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00526/0.8019, allocations: 1.432 MB / 1.044 GB, free: 2.414 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002176/0.8041, allocations: 451.2 kB / 1.045 GB, free: 1.973 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02414/0.8282, allocations: 24.57 MB / 1.069 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002639/0.8309, allocations: 311.5 kB / 1.069 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002155/0.8311, allocations: 59.97 kB / 1.069 GB, free: 7.289 MB / 0.8262 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009126/0.8321, allocations: 446.3 kB / 1.069 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003717/0.8324, allocations: 166 kB / 1.07 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01208/0.8445, allocations: 4.496 MB / 1.074 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.476e-05/0.8446, allocations: 12 kB / 1.074 GB, free: 2.117 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.739e-05/0.8446, allocations: 12 kB / 1.074 GB, free: 2.105 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.007e-05/0.8447, allocations: 8.078 kB / 1.074 GB, free: 2.098 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01551/0.8602, allocations: 6.848 MB / 1.081 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.8602, allocations: 0 / 1.081 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001832/0.862, allocations: 395.7 kB / 1.081 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0047/0.8668, allocations: 1.303 MB / 1.082 GB, free: 9.348 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001605/0.867, allocations: 47.95 kB / 1.082 GB, free: 9.301 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02228/0.8892, allocations: 23.53 MB / 1.105 GB, free: 44 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.8893, allocations: 4.031 kB / 1.105 GB, free: 40 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01098/0.9003, allocations: 4.247 MB / 1.11 GB, free: 11.69 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008702/0.9012, allocations: 458.9 kB / 1.11 GB, free: 11.22 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003642/0.9015, allocations: 24 kB / 1.11 GB, free: 11.2 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002313/0.9039, allocations: 319.5 kB / 1.11 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004422/0.9043, allocations: 132.7 kB / 1.11 GB, free: 10.75 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001256/0.9045, allocations: 43.97 kB / 1.111 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001167/0.9056, allocations: 0.7526 MB / 1.111 GB, free: 9.957 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9056, allocations: 0 / 1.111 GB, free: 9.957 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002342/0.908, allocations: 0.5703 MB / 1.112 GB, free: 9.387 MB / 0.8731 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01113/0.9191, allocations: 4.838 MB / 1.117 GB, free: 4.441 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.01095/0.9301, allocations: 5.143 MB / 1.122 GB, free: 15.13 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 7.844e-06/0.9301, allocations: 4 kB / 1.122 GB, free: 15.13 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.006742/0.9369, allocations: 3.511 MB / 1.125 GB, free: 11.45 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003031/0.9399, allocations: 0.5144 MB / 1.125 GB, free: 10.94 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04253/0.9825, allocations: 21.05 MB / 1.146 GB, free: 5.188 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001207/0.9837, allocations: 1.477 MB / 1.147 GB, free: 3.68 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001701/0.9854, allocations: 429.6 kB / 1.148 GB, free: 3.254 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008681/0.9863, allocations: 0.6242 MB / 1.149 GB, free: 2.629 MB / 0.9044 GB Notification: Performance of SimCode: time 6.92e-07/0.9863, allocations: 0 / 1.149 GB, free: 2.629 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07323/1.06, allocations: 49.03 MB / 1.196 GB, free: 2.23 MB / 0.9512 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/1.06, allocations: 247.8 kB / 1.197 GB, free: 1.969 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.783/3.843, allocations: 0 / 1.197 GB, free: 1.969 MB / 0.9512 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches