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.001861/0.001861, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001972/0.001972, allocations: 195 kB / 16.14 MB, free: 6.711 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.333/1.333, allocations: 222.9 MB / 239.8 MB, free: 4.633 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.271/2.271, allocations: 390.2 MB / 0.6643 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 67.89 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6344/0.6358, allocations: 140.4 MB / 0.9491 GB, free: 9.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01355/0.6494, allocations: 13.96 MB / 0.9627 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0137/0.6631, allocations: 9.392 MB / 0.9719 GB, free: 6.98 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001813/0.665, allocations: 54.97 kB / 0.9719 GB, free: 6.957 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.004248/0.6693, allocations: 1.557 MB / 0.9734 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.005259/0.6745, allocations: 1.404 MB / 0.9748 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002791/0.6773, allocations: 0.6925 MB / 0.9755 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.00479/0.6821, allocations: 3.167 MB / 0.9786 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002651/0.6848, allocations: 1.348 MB / 0.9799 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002268/0.6871, allocations: 0.9397 MB / 0.9808 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002442/0.6896, allocations: 1.134 MB / 0.9819 GB, free: 356 kB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0005383/0.6901, allocations: 100 kB / 0.982 GB, free: 256 kB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002517/0.6926, allocations: 0.889 MB / 0.9829 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0009581/0.6936, allocations: 0.5451 MB / 0.9834 GB, free: 14.81 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.002015/0.6956, allocations: 0.8781 MB / 0.9843 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.004017/0.6997, allocations: 2.725 MB / 0.9869 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.6997, allocations: 4 kB / 0.9869 GB, free: 11.19 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.352e-06/0.6997, allocations: 3.938 kB / 0.9869 GB, free: 11.19 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 9.859e-05/0.6998, allocations: 0 / 0.9869 GB, free: 11.19 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.004874/0.7047, allocations: 2.143 MB / 0.989 GB, free: 8.988 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.7047, allocations: 8.031 kB / 0.989 GB, free: 8.98 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002309/0.705, allocations: 198.3 kB / 0.9892 GB, free: 8.777 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01065/0.7156, allocations: 2.089 MB / 0.9913 GB, free: 6.684 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002718/0.7184, allocations: 1.193 MB / 0.9924 GB, free: 5.434 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.455e-05/0.7185, allocations: 94.67 kB / 0.9925 GB, free: 5.34 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002355/0.7187, allocations: 115.9 kB / 0.9926 GB, free: 5.227 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005406/0.7241, allocations: 2.686 MB / 0.9953 GB, free: 2.391 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.98e-05/0.7242, allocations: 11.84 kB / 0.9953 GB, free: 2.379 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001787/0.7244, allocations: 59.97 kB / 0.9953 GB, free: 2.32 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006097/0.725, allocations: 182.1 kB / 0.9955 GB, free: 2.141 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007018/0.732, allocations: 2.799 MB / 0.9982 GB, free: 15.33 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0155/0.7475, allocations: 10.5 MB / 1.008 GB, free: 4.254 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006588/0.7542, allocations: 2.535 MB / 1.011 GB, free: 1.656 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002956/0.7572, allocations: 1.281 MB / 1.012 GB, free: 380 kB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 7.966e-05/0.7573, allocations: 9 kB / 1.012 GB, free: 372 kB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/0.7573, allocations: 43.56 kB / 1.012 GB, free: 320 kB / 0.7637 GB Notification: Performance of pre-optimization done (n=89): time 3.596e-06/0.7573, allocations: 4 kB / 1.012 GB, free: 316 kB / 0.7637 GB Notification: Performance of matching and sorting (n=131): time 0.04515/0.8025, allocations: 13.34 MB / 1.025 GB, free: 2.75 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.564e-05/0.8026, allocations: 64.72 kB / 1.025 GB, free: 2.672 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001659/0.8042, allocations: 1.121 MB / 1.026 GB, free: 1.535 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0001644/0.8044, allocations: 49.7 kB / 1.026 GB, free: 1.48 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005134/0.805, allocations: 0.7193 MB / 1.027 GB, free: 0.7539 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004748/0.8054, allocations: 449.5 kB / 1.028 GB, free: 316 kB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005434/0.806, allocations: 259.4 kB / 1.028 GB, free: 48 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001617/0.8062, allocations: 365.9 kB / 1.028 GB, free: 15.68 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003056/0.8092, allocations: 1.335 MB / 1.03 GB, free: 14.34 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003201/0.8124, allocations: 1.6 MB / 1.031 GB, free: 12.65 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006243/0.8187, allocations: 2.998 MB / 1.034 GB, free: 9.555 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.8187, allocations: 0 / 1.034 GB, free: 9.555 MB / 0.795 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01096/0.8297, allocations: 4.439 MB / 1.038 GB, free: 5.062 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.099e-05/0.8298, allocations: 12.16 kB / 1.038 GB, free: 5.051 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/0.8298, allocations: 11.94 kB / 1.038 GB, free: 5.039 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005307/0.8351, allocations: 1.435 MB / 1.04 GB, free: 3.562 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001922/0.837, allocations: 439.2 kB / 1.04 GB, free: 3.133 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02468/0.8617, allocations: 24.57 MB / 1.064 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002352/0.8641, allocations: 299.5 kB / 1.064 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002729/0.8644, allocations: 63.95 kB / 1.065 GB, free: 8.461 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.0009966/0.8654, allocations: 442.8 kB / 1.065 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004357/0.8659, allocations: 166.2 kB / 1.065 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01112/0.877, allocations: 4.457 MB / 1.069 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.877, allocations: 12 kB / 1.069 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.815e-05/0.8771, allocations: 12 kB / 1.069 GB, free: 3.32 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.8771, allocations: 7.969 kB / 1.069 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01467/0.8918, allocations: 6.782 MB / 1.076 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.285e-05/0.8918, allocations: 4 kB / 1.076 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001615/0.8935, allocations: 383.6 kB / 1.076 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00477/0.8982, allocations: 1.306 MB / 1.078 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001468/0.8984, allocations: 35.97 kB / 1.078 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02248/0.9209, allocations: 23.51 MB / 1.101 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.9209, allocations: 7.938 kB / 1.101 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01032/0.9313, allocations: 4.2 MB / 1.105 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008992/0.9322, allocations: 455 kB / 1.105 GB, free: 12.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004005/0.9326, allocations: 31.92 kB / 1.105 GB, free: 12.56 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001988/0.9346, allocations: 307.5 kB / 1.106 GB, free: 12.26 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004427/0.9351, allocations: 124.6 kB / 1.106 GB, free: 12.13 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/0.9352, allocations: 55.97 kB / 1.106 GB, free: 12.08 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001107/0.9363, allocations: 0.7487 MB / 1.107 GB, free: 11.33 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9363, allocations: 0 / 1.107 GB, free: 11.33 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002153/0.9385, allocations: 0.5786 MB / 1.107 GB, free: 10.75 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.01065/0.9492, allocations: 4.787 MB / 1.112 GB, free: 5.855 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.01069/0.9599, allocations: 5.115 MB / 1.117 GB, free: 0.5742 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.9599, allocations: 3.938 kB / 1.117 GB, free: 0.5703 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.006629/0.9666, allocations: 3.487 MB / 1.12 GB, free: 12.91 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002684/0.9693, allocations: 0.5114 MB / 1.121 GB, free: 12.41 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04265/1.012, allocations: 20.91 MB / 1.141 GB, free: 6.793 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001324/1.013, allocations: 1.477 MB / 1.143 GB, free: 5.285 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001787/1.015, allocations: 425.6 kB / 1.143 GB, free: 4.863 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009099/1.016, allocations: 0.632 MB / 1.144 GB, free: 4.23 MB / 0.9044 GB Notification: Performance of SimCode: time 5.01e-07/1.016, allocations: 0 / 1.144 GB, free: 4.23 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07584/1.092, allocations: 49.84 MB / 1.192 GB, free: 2.996 MB / 0.9512 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001836/1.092, allocations: 248.7 kB / 1.192 GB, free: 2.734 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.845/3.937, allocations: 0 / 1.192 GB, free: 2.734 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