Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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_R_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_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.006594/0.006594, allocations: 100.9 kB / 15.73 MB, free: 5.988 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.001296/0.001297, allocations: 192.5 kB / 16.67 MB, free: 5.91 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.371/1.371, allocations: 222.9 MB / 240.4 MB, free: 4.168 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.523/2.523, allocations: 437.1 MB / 0.7105 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001375, allocations: 63.91 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2799, allocations: 151.6 MB / 1.166 GB, free: 7.297 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04151/0.3215, allocations: 37.95 MB / 1.203 GB, free: 1.215 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.02012/0.3416, allocations: 10.99 MB / 1.214 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004042/0.3457, allocations: 155.2 kB / 1.214 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.01163/0.3574, allocations: 4.376 MB / 1.218 GB, free: 1.652 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.006907/0.3643, allocations: 2.328 MB / 1.221 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.007199/0.3716, allocations: 2.166 MB / 1.223 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0133/0.3849, allocations: 9.299 MB / 1.232 GB, free: 3.82 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01786/0.4028, allocations: 11.27 MB / 1.243 GB, free: 8.43 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006731/0.4096, allocations: 4.055 MB / 1.247 GB, free: 4.363 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.6918/1.101, allocations: 4.496 MB / 1.251 GB, free: 24.42 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.003858/1.105, allocations: 0.8221 MB / 1.252 GB, free: 24.42 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006502/1.112, allocations: 1.587 MB / 1.254 GB, free: 24.42 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.007539/1.119, allocations: 3.151 MB / 1.257 GB, free: 24.42 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.01199/1.132, allocations: 3.659 MB / 1.26 GB, free: 24.09 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.02495/1.156, allocations: 12.31 MB / 1.272 GB, free: 23.04 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/1.157, allocations: 1.062 kB / 1.272 GB, free: 23.04 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.813e-06/1.157, allocations: 0.5 kB / 1.272 GB, free: 23.04 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0004819/1.157, allocations: 1.906 kB / 1.272 GB, free: 23.04 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: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.02921/1.186, allocations: 6.32 MB / 1.278 GB, free: 20.85 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.776e-05/1.186, allocations: 9.625 kB / 1.278 GB, free: 20.85 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006816/1.193, allocations: 0.8259 MB / 1.279 GB, free: 20.77 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01172/1.205, allocations: 1.073 MB / 1.28 GB, free: 20.45 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01288/1.218, allocations: 3.607 MB / 1.284 GB, free: 19.71 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005971/1.218, allocations: 432.8 kB / 1.284 GB, free: 19.7 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003684/1.222, allocations: 0.5376 MB / 1.285 GB, free: 19.7 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03262/1.255, allocations: 9.381 MB / 1.294 GB, free: 17.89 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004169/1.255, allocations: 22.88 kB / 1.294 GB, free: 17.89 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003511/1.259, allocations: 249.1 kB / 1.294 GB, free: 17.71 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007978/1.26, allocations: 419.1 kB / 1.295 GB, free: 17.67 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02166/1.281, allocations: 7.124 MB / 1.302 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06203/1.343, allocations: 41 MB / 1.342 GB, free: 11.99 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005643/1.349, allocations: 3.112 MB / 1.345 GB, free: 10.41 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003907/1.353, allocations: 2.145 MB / 1.347 GB, free: 9.285 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002562/1.353, allocations: 28.8 kB / 1.347 GB, free: 9.277 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.258e-05/1.353, allocations: 62.19 kB / 1.347 GB, free: 9.219 MB / 1.029 GB Notification: Performance of pre-optimization done (n=209): time 5.681e-06/1.353, allocations: 0 / 1.347 GB, free: 9.219 MB / 1.029 GB Notification: Performance of matching and sorting (n=212): time 0.02851/1.382, allocations: 10.56 MB / 1.357 GB, free: 3.273 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.191e-05/1.382, allocations: 80.16 kB / 1.357 GB, free: 3.203 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004003/1.386, allocations: 1.998 MB / 1.359 GB, free: 2.121 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0005557/1.387, allocations: 61.48 kB / 1.359 GB, free: 2.062 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.002089/1.389, allocations: 2.406 MB / 1.362 GB, free: 15.95 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.001167/1.39, allocations: 0.7359 MB / 1.362 GB, free: 15.31 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001973/1.392, allocations: 477.8 kB / 1.363 GB, free: 15.05 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001012/1.392, allocations: 304.7 kB / 1.363 GB, free: 14.75 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002486/1.395, allocations: 1.374 MB / 1.364 GB, free: 14.03 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003601/1.398, allocations: 2.104 MB / 1.366 GB, free: 12.38 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006116/1.404, allocations: 3.764 MB / 1.37 GB, free: 9.906 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.718e-05/1.404, allocations: 5.688 kB / 1.37 GB, free: 9.906 MB / 1.045 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.01167/1.416, allocations: 5.068 MB / 1.375 GB, free: 6.535 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 5.388e-05/1.416, allocations: 21.75 kB / 1.375 GB, free: 6.52 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.346e-05/1.416, allocations: 20.09 kB / 1.375 GB, free: 6.5 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004259/1.42, allocations: 1.592 MB / 1.377 GB, free: 4.902 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00205/1.423, allocations: 450.8 kB / 1.377 GB, free: 4.492 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02454/1.447, allocations: 18.57 MB / 1.395 GB, free: 1.418 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003278/1.45, allocations: 143.8 kB / 1.395 GB, free: 1.277 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007243/1.451, allocations: 112 kB / 1.395 GB, free: 1.168 MB / 1.061 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 (231): * Single equations (assignments): 227 * 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 {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005284/1.456, allocations: 1.936 MB / 1.397 GB, free: 15.25 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001339/1.458, allocations: 288.6 kB / 1.398 GB, free: 14.96 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009488/1.467, allocations: 4.457 MB / 1.402 GB, free: 10.54 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.121e-05/1.467, allocations: 20 kB / 1.402 GB, free: 10.52 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.184e-05/1.467, allocations: 16 kB / 1.402 GB, free: 10.5 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.966e-05/1.467, allocations: 11.95 kB / 1.402 GB, free: 10.49 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02142/1.489, allocations: 9.676 MB / 1.411 GB, free: 0.7969 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-05/1.489, allocations: 4.125 kB / 1.411 GB, free: 0.793 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001185/1.49, allocations: 235.1 kB / 1.412 GB, free: 0.5742 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00368/1.494, allocations: 1.431 MB / 1.413 GB, free: 15.14 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004576/1.494, allocations: 39.98 kB / 1.413 GB, free: 15.1 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02331/1.518, allocations: 18.57 MB / 1.431 GB, free: 12.02 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.169e-05/1.518, allocations: 4.562 kB / 1.431 GB, free: 12.02 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008883/1.527, allocations: 4.538 MB / 1.436 GB, free: 7.449 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002294/1.529, allocations: 0.6342 MB / 1.436 GB, free: 6.793 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001202/1.53, allocations: 40 kB / 1.436 GB, free: 6.754 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0023/1.532, allocations: 115.9 kB / 1.436 GB, free: 6.641 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009111/1.533, allocations: 181.2 kB / 1.437 GB, free: 6.469 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004886/1.534, allocations: 60 kB / 1.437 GB, free: 6.41 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.003111/1.537, allocations: 1.319 MB / 1.438 GB, free: 5.082 MB / 1.107 GB Notification: Performance of sort global known variables: time 7.12e-07/1.537, allocations: 0 / 1.438 GB, free: 5.082 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.008262/1.545, allocations: 1.141 MB / 1.439 GB, free: 3.941 MB / 1.107 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (107): * Single equations (assignments): 103 * 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 {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01078/1.556, allocations: 5.159 MB / 1.444 GB, free: 14.76 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.008868/1.565, allocations: 4.714 MB / 1.449 GB, free: 10.07 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/1.565, allocations: 1 kB / 1.449 GB, free: 10.07 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.005336/1.57, allocations: 2.921 MB / 1.452 GB, free: 7.137 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006082/1.577, allocations: 0.8872 MB / 1.452 GB, free: 6.281 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07203/1.649, allocations: 30.37 MB / 1.482 GB, free: 6.992 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008403/1.657, allocations: 3.698 MB / 1.486 GB, free: 3.258 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.003298/1.66, allocations: 0.5518 MB / 1.486 GB, free: 2.699 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004884/1.665, allocations: 1.94 MB / 1.488 GB, free: 0.7578 MB / 1.154 GB Notification: Performance of SimCode: time 2.044e-06/1.665, allocations: 4 kB / 1.488 GB, free: 0.7539 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1594/1.825, allocations: 85.26 MB / 1.571 GB, free: 12.66 MB / 1.248 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.2/17.02, allocations: 7.047 kB / 1.571 GB, free: 12.66 MB / 1.248 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches