Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N",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.001467/0.001467, 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.001648/0.001648, allocations: 194.3 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.318/1.318, 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 9.1.3-maint.9.1.x/package.mo): time 2.331/2.331, allocations: 390.2 MB / 0.6647 GB, free: 480 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001284, allocations: 68.09 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5804/0.5817, allocations: 140.4 MB / 0.9497 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.03484/0.6166, allocations: 33.32 MB / 0.9823 GB, free: 15.53 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.02714/0.6437, allocations: 14.83 MB / 0.9968 GB, free: 1.574 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006539/0.6503, allocations: 159.2 kB / 0.9969 GB, free: 1.418 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.0116/0.662, allocations: 3.645 MB / 1 GB, free: 13.76 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.01032/0.6724, allocations: 2.888 MB / 1.003 GB, free: 10.86 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.007772/0.6802, allocations: 2.324 MB / 1.006 GB, free: 8.535 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01543/0.6956, allocations: 8.818 MB / 1.014 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01116/0.7068, allocations: 9.644 MB / 1.024 GB, free: 5.93 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005554/0.7124, allocations: 3.946 MB / 1.027 GB, free: 1.973 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005422/0.7178, allocations: 4.034 MB / 1.031 GB, free: 13.92 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.001441/0.7193, allocations: 0.7187 MB / 1.032 GB, free: 13.2 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004053/0.7233, allocations: 1.712 MB / 1.034 GB, free: 11.49 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.002813/0.7262, allocations: 2.83 MB / 1.037 GB, free: 8.656 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.004605/0.7308, allocations: 3.392 MB / 1.04 GB, free: 5.25 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.01051/0.7413, allocations: 11.12 MB / 1.051 GB, free: 10.1 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.7413, allocations: 0 / 1.051 GB, free: 10.1 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.844e-06/0.7413, allocations: 0 / 1.051 GB, free: 10.1 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0002299/0.7416, allocations: 0 / 1.051 GB, free: 10.1 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1338 * Number of variables: 1338 Notification: Performance of Generate backend data structure: time 0.01168/0.7533, allocations: 5.975 MB / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.7533, allocations: 12.03 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00101/0.7543, allocations: 0.7232 MB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006346/0.7607, allocations: 1.138 MB / 1.058 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007101/0.7678, allocations: 3.332 MB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003056/0.7681, allocations: 370.4 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001554/0.7697, allocations: 0.4958 MB / 1.062 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0136/0.7833, allocations: 8.005 MB / 1.07 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001138/0.7835, allocations: 19.78 kB / 1.07 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005189/0.784, allocations: 216 kB / 1.07 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001075/0.7851, allocations: 437.6 kB / 1.071 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01026/0.7953, allocations: 6.085 MB / 1.077 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04316/0.8385, allocations: 35.16 MB / 1.111 GB, free: 8.508 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003009/0.8416, allocations: 2.033 MB / 1.113 GB, free: 6.469 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00262/0.8442, allocations: 1.865 MB / 1.115 GB, free: 4.605 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001206/0.8444, allocations: 18 kB / 1.115 GB, free: 4.59 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.983e-05/0.8444, allocations: 60.5 kB / 1.115 GB, free: 4.52 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=171): time 3.637e-06/0.8444, allocations: 4 kB / 1.115 GB, free: 4.516 MB / 0.8731 GB Notification: Performance of matching and sorting (n=276): time 0.1548/0.9993, allocations: 38.86 MB / 1.153 GB, free: 13.55 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.841e-05/0.9994, allocations: 85.58 kB / 1.153 GB, free: 13.46 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003711/1.003, allocations: 2.282 MB / 1.155 GB, free: 11.15 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0004125/1.004, allocations: 73.7 kB / 1.155 GB, free: 11.07 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001438/1.005, allocations: 2.272 MB / 1.158 GB, free: 8.77 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.000914/1.006, allocations: 0.9357 MB / 1.159 GB, free: 7.82 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001139/1.007, allocations: 0.5061 MB / 1.159 GB, free: 7.305 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.451e-05/1.007, allocations: 305.1 kB / 1.159 GB, free: 7.004 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002755/1.01, allocations: 1.981 MB / 1.161 GB, free: 5.02 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003209/1.013, allocations: 2.599 MB / 1.164 GB, free: 2.18 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006708/1.02, allocations: 4.929 MB / 1.169 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.788e-05/1.02, allocations: 4 kB / 1.169 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01434/1.034, allocations: 7.758 MB / 1.176 GB, free: 5.145 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.838e-05/1.034, allocations: 16.2 kB / 1.176 GB, free: 5.129 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.001e-05/1.034, allocations: 20 kB / 1.176 GB, free: 5.109 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009097/1.043, allocations: 3.239 MB / 1.179 GB, free: 1.852 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/1.045, allocations: 407.3 kB / 1.18 GB, free: 1.453 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04305/1.088, allocations: 33.89 MB / 1.213 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003137/1.091, allocations: 167.8 kB / 1.213 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004422/1.092, allocations: 112.1 kB / 1.213 GB, free: 14.43 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (202): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(10,28,71.0%), (10,28,65.0%), (6,24,77.8%), (6,24,77.8%), (5,17,84.0%), (5,17,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003115/1.095, allocations: 1.793 MB / 1.215 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007606/1.096, allocations: 332.1 kB / 1.215 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01381/1.109, allocations: 7.364 MB / 1.222 GB, free: 4.855 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-05/1.11, allocations: 28 kB / 1.222 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.949e-05/1.11, allocations: 31.94 kB / 1.222 GB, free: 4.797 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.694e-05/1.11, allocations: 11.95 kB / 1.222 GB, free: 4.785 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02353/1.133, allocations: 12.92 MB / 1.235 GB, free: 7.691 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.871e-05/1.133, allocations: 8 kB / 1.235 GB, free: 7.684 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009383/1.134, allocations: 236.3 kB / 1.235 GB, free: 7.453 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008257/1.142, allocations: 2.876 MB / 1.238 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003075/1.143, allocations: 56 kB / 1.238 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5492/1.692, allocations: 32.67 MB / 1.27 GB, free: 271.6 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.661e-05/1.692, allocations: 11.89 kB / 1.27 GB, free: 271.6 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01758/1.71, allocations: 6.89 MB / 1.277 GB, free: 268.9 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002309/1.712, allocations: 0.7749 MB / 1.278 GB, free: 268.5 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001108/1.713, allocations: 59.48 kB / 1.278 GB, free: 268.5 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003221/1.716, allocations: 171 kB / 1.278 GB, free: 268.5 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001261/1.718, allocations: 257.9 kB / 1.278 GB, free: 268.4 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003865/1.718, allocations: 75.91 kB / 1.278 GB, free: 268.4 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.003875/1.722, allocations: 1.522 MB / 1.28 GB, free: 267.8 MB / 1.014 GB Notification: Performance of sort global known variables: time 4.91e-07/1.722, allocations: 1.125 kB / 1.28 GB, free: 267.8 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.006394/1.728, allocations: 1.369 MB / 1.281 GB, free: 267.7 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (105): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(5,17,84.0%), (6,24,77.8%), (10,28,65.0%), (5,17,92.0%), (6,24,77.8%), (10,28,65.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01731/1.746, allocations: 7.513 MB / 1.288 GB, free: 264.3 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.01551/1.761, allocations: 8.376 MB / 1.296 GB, free: 261.2 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-05/1.761, allocations: 7.375 kB / 1.296 GB, free: 261.2 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.006668/1.768, allocations: 4.404 MB / 1.301 GB, free: 259.1 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004964/1.773, allocations: 1.11 MB / 1.302 GB, free: 258.7 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05823/1.831, allocations: 43.84 MB / 1.345 GB, free: 216.3 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003116/1.834, allocations: 3.642 MB / 1.348 GB, free: 212.7 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001958/1.836, allocations: 0.5595 MB / 1.349 GB, free: 212.1 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001576/1.838, allocations: 1.972 MB / 1.351 GB, free: 210.1 MB / 1.014 GB Notification: Performance of SimCode: time 8.72e-07/1.838, allocations: 3.938 kB / 1.351 GB, free: 210.1 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1452/1.983, allocations: 112.7 MB / 1.461 GB, free: 98.66 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/14.14, allocations: 10.12 kB / 1.461 GB, free: 98.65 MB / 1.014 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches