Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_RLC_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_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.001598/0.001598, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001249/0.001249, allocations: 193.5 kB / 16.25 MB, free: 6.637 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 / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.414/2.414, allocations: 437.1 MB / 0.7101 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 72.03 kB / 0.8689 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6287/0.6301, allocations: 151.6 MB / 1.017 GB, free: 2.871 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.03933/0.6694, allocations: 40.81 MB / 1.057 GB, free: 9.93 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.02528/0.6948, allocations: 14.98 MB / 1.071 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005048/0.6999, allocations: 171.1 kB / 1.072 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.01061/0.7105, allocations: 4.152 MB / 1.076 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.007314/0.7179, allocations: 2.586 MB / 1.078 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.007176/0.725, allocations: 2.893 MB / 1.081 GB, free: 1.098 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.01296/0.738, allocations: 11.43 MB / 1.092 GB, free: 5.633 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02129/0.7593, allocations: 14.86 MB / 1.107 GB, free: 6.645 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007706/0.7671, allocations: 4.887 MB / 1.111 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009752/0.7769, allocations: 5.632 MB / 1.117 GB, free: 12.09 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.003291/0.7802, allocations: 0.9492 MB / 1.118 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005447/0.7856, allocations: 2.044 MB / 1.12 GB, free: 9.098 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.005355/0.791, allocations: 3.695 MB / 1.123 GB, free: 5.395 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.008088/0.7991, allocations: 4.299 MB / 1.128 GB, free: 1.078 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.016/0.8151, allocations: 14.29 MB / 1.142 GB, free: 2.75 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.8152, allocations: 0 / 1.142 GB, free: 2.75 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.543e-06/0.8152, allocations: 0 / 1.142 GB, free: 2.75 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0004794/0.8157, allocations: 0 / 1.142 GB, free: 2.75 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.0223/0.838, allocations: 7.608 MB / 1.149 GB, free: 11.06 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.8381, allocations: 8.031 kB / 1.149 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003048/0.8411, allocations: 0.9072 MB / 1.15 GB, free: 10.13 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01073/0.8519, allocations: 1.515 MB / 1.151 GB, free: 8.609 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009328/0.8612, allocations: 4.213 MB / 1.156 GB, free: 4.32 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004536/0.8617, allocations: 456.5 kB / 1.156 GB, free: 3.871 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002358/0.8641, allocations: 0.5861 MB / 1.157 GB, free: 3.285 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02241/0.8865, allocations: 10.69 MB / 1.167 GB, free: 8.223 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002687/0.8868, allocations: 31.69 kB / 1.167 GB, free: 8.191 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00179/0.8886, allocations: 267.9 kB / 1.167 GB, free: 7.93 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002806/0.8914, allocations: 0.7729 MB / 1.168 GB, free: 7.152 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01741/0.9089, allocations: 8.565 MB / 1.176 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06372/0.9726, allocations: 46.84 MB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00594/0.9786, allocations: 4.311 MB / 1.226 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005088/0.9837, allocations: 3.701 MB / 1.23 GB, free: 3.922 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003255/0.984, allocations: 38.78 kB / 1.23 GB, free: 3.883 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.632e-05/0.9841, allocations: 81.28 kB / 1.23 GB, free: 3.793 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=353): time 5.381e-06/0.9841, allocations: 0 / 1.23 GB, free: 3.793 MB / 0.9825 GB Notification: Performance of matching and sorting (n=578): time 0.9529/1.937, allocations: 122.8 MB / 1.35 GB, free: 136.4 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/1.937, allocations: 111.9 kB / 1.35 GB, free: 136.2 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003233/1.94, allocations: 2.677 MB / 1.353 GB, free: 133.6 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0009595/1.941, allocations: 125.7 kB / 1.353 GB, free: 133.4 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001134/1.943, allocations: 2.678 MB / 1.355 GB, free: 130.7 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001657/1.944, allocations: 1.957 MB / 1.357 GB, free: 128.8 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00213/1.946, allocations: 0.9248 MB / 1.358 GB, free: 127.9 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.471e-05/1.946, allocations: 305.1 kB / 1.359 GB, free: 127.6 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004556/1.951, allocations: 4.075 MB / 1.363 GB, free: 123.5 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004866/1.956, allocations: 5.023 MB / 1.367 GB, free: 118.1 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01041/1.966, allocations: 9.848 MB / 1.377 GB, free: 107.9 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.21e-05/1.966, allocations: 11.92 kB / 1.377 GB, free: 107.9 MB / 0.9981 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.03213/1.998, allocations: 16.99 MB / 1.394 GB, free: 90.78 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.691e-05/1.998, allocations: 17.72 kB / 1.394 GB, free: 90.77 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.141e-05/1.999, allocations: 24 kB / 1.394 GB, free: 90.74 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02703/2.026, allocations: 9.149 MB / 1.403 GB, free: 81.55 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002137/2.028, allocations: 0.5226 MB / 1.403 GB, free: 81.03 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08486/2.113, allocations: 77.03 MB / 1.478 GB, free: 2.469 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004386/2.117, allocations: 275.8 kB / 1.479 GB, free: 2.199 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008931/2.118, allocations: 195.9 kB / 1.479 GB, free: 2.008 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (274): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(5,17,84.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (14,72,59.2%), (14,72,59.2%), (6,40,77.8%), (8,70,73.4%), (8,70,70.3%), (6,40,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003698/2.122, allocations: 2.427 MB / 1.481 GB, free: 15.57 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001191/2.123, allocations: 474.5 kB / 1.482 GB, free: 15.11 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03643/2.159, allocations: 16.82 MB / 1.498 GB, free: 14.14 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.292e-05/2.159, allocations: 60 kB / 1.498 GB, free: 14.09 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001701/2.16, allocations: 72 kB / 1.498 GB, free: 14.02 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-05/2.16, allocations: 27.89 kB / 1.498 GB, free: 13.99 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05106/2.211, allocations: 25.66 MB / 1.523 GB, free: 4.094 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.365e-05/2.211, allocations: 4 kB / 1.523 GB, free: 4.09 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001697/2.212, allocations: 319.5 kB / 1.524 GB, free: 3.777 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02747/2.24, allocations: 8.334 MB / 1.532 GB, free: 11.4 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007742/2.241, allocations: 107.9 kB / 1.532 GB, free: 11.3 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09758/2.338, allocations: 73.9 MB / 1.604 GB, free: 15.87 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.025e-05/2.338, allocations: 11.94 kB / 1.604 GB, free: 15.86 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0424/2.381, allocations: 21.56 MB / 1.625 GB, free: 9.949 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003088/2.384, allocations: 1.362 MB / 1.626 GB, free: 8.562 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001322/2.385, allocations: 108 kB / 1.626 GB, free: 8.457 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003565/2.389, allocations: 287.6 kB / 1.627 GB, free: 8.176 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00196/2.391, allocations: 0.5297 MB / 1.627 GB, free: 7.641 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005529/2.391, allocations: 140 kB / 1.627 GB, free: 7.504 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.002758/2.394, allocations: 1.781 MB / 1.629 GB, free: 5.734 MB / 1.154 GB Notification: Performance of sort global known variables: time 1.6e-07/2.394, allocations: 0 / 1.629 GB, free: 5.734 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.007648/2.402, allocations: 2.461 MB / 1.632 GB, free: 3.273 MB / 1.154 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.Vc[2]) * 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 (142): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(6,40,77.8%), (8,70,70.3%), (14,72,51.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (5,17,84.0%), (6,40,83.3%), (8,70,70.3%), (14,72,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.04162/2.443, allocations: 22.29 MB / 1.653 GB, free: 12.63 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.03433/2.478, allocations: 18.67 MB / 1.672 GB, free: 9.785 MB / 1.201 GB Notification: Performance of simCode: created event and clocks part: time 1.35e-05/2.478, allocations: 4 kB / 1.672 GB, free: 9.781 MB / 1.201 GB Notification: Performance of simCode: created simulation system equations: time 0.01955/2.497, allocations: 9.351 MB / 1.681 GB, free: 292 kB / 1.201 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008048/2.506, allocations: 1.368 MB / 1.682 GB, free: 14.96 MB / 1.217 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5941/3.1, allocations: 82.77 MB / 1.763 GB, free: 393.2 MB / 1.232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005659/3.105, allocations: 4.896 MB / 1.768 GB, free: 391.6 MB / 1.232 GB Notification: Performance of simCode: alias equations: time 0.002647/3.108, allocations: 0.7413 MB / 1.768 GB, free: 391.5 MB / 1.232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002448/3.11, allocations: 2.612 MB / 1.771 GB, free: 389.3 MB / 1.232 GB Notification: Performance of SimCode: time 1.303e-06/3.11, allocations: 0 / 1.771 GB, free: 389.3 MB / 1.232 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.234/3.344, allocations: 197.6 MB / 1.964 GB, free: 206.7 MB / 1.232 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001357/3.345, allocations: 258.4 kB / 1.964 GB, free: 206.4 MB / 1.232 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.689/10.03, allocations: 4 kB / 1.964 GB, free: 206.4 MB / 1.232 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches