Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.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.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: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.load1.i.1.|R1.load1.i.2.|R2.load1.i.1.|R2.load1.i.2.|R3.load1.i.1.|R3.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001533/0.001534, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001832/0.001832, allocations: 195.1 kB / 16.14 MB, free: 6.645 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.471/1.471, allocations: 222.9 MB / 239.8 MB, free: 4.586 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.421/2.421, allocations: 390.2 MB / 0.6642 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002418/0.002418, allocations: 63.91 kB / 0.8119 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8411/0.8435, allocations: 140.4 MB / 0.9489 GB, free: 9.246 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.03374/0.8773, allocations: 30.49 MB / 0.9787 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0233/0.9006, allocations: 13.56 MB / 0.9919 GB, free: 5.938 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00392/0.9046, allocations: 135.2 kB / 0.9921 GB, free: 5.805 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.008278/0.9129, allocations: 2.966 MB / 0.995 GB, free: 2.832 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.009295/0.9222, allocations: 2.478 MB / 0.9974 GB, free: 352 kB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.006515/0.9288, allocations: 1.843 MB / 0.9992 GB, free: 14.5 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01511/0.9439, allocations: 10.43 MB / 1.009 GB, free: 4.047 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01527/0.9592, allocations: 9.046 MB / 1.018 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005896/0.9652, allocations: 2.97 MB / 1.021 GB, free: 7.902 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005785/0.971, allocations: 3.43 MB / 1.024 GB, free: 4.461 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.001679/0.9727, allocations: 400 kB / 1.025 GB, free: 4.07 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00423/0.9769, allocations: 1.533 MB / 1.026 GB, free: 2.535 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.003338/0.9803, allocations: 2.159 MB / 1.028 GB, free: 380 kB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.005232/0.9855, allocations: 2.644 MB / 1.031 GB, free: 13.71 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.01303/0.9986, allocations: 9.312 MB / 1.04 GB, free: 4.375 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.9986, allocations: 0 / 1.04 GB, free: 4.375 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.134e-06/0.9986, allocations: 0 / 1.04 GB, free: 4.375 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0003108/0.999, allocations: 0 / 1.04 GB, free: 4.375 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1133 * Number of variables: 1133 Notification: Performance of Generate backend data structure: time 0.01401/1.013, allocations: 5.136 MB / 1.045 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/1.013, allocations: 8.031 kB / 1.045 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006362/1.019, allocations: 0.998 MB / 1.046 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008619/1.028, allocations: 2.9 MB / 1.049 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000279/1.028, allocations: 316.8 kB / 1.049 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001356/1.03, allocations: 424 kB / 1.05 GB, free: 10.44 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01398/1.044, allocations: 6.803 MB / 1.056 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001393/1.044, allocations: 27.72 kB / 1.056 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006518/1.045, allocations: 176 kB / 1.056 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008756/1.045, allocations: 372 kB / 1.057 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01184/1.057, allocations: 5.11 MB / 1.062 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03969/1.097, allocations: 30.74 MB / 1.092 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002144/1.099, allocations: 1.383 MB / 1.093 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001799/1.101, allocations: 1.332 MB / 1.095 GB, free: 9.418 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001025/1.101, allocations: 13.31 kB / 1.095 GB, free: 9.406 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.469e-05/1.101, allocations: 51.88 kB / 1.095 GB, free: 9.344 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=130): time 3.477e-06/1.101, allocations: 4 kB / 1.095 GB, free: 9.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=199): time 0.08339/1.185, allocations: 23.07 MB / 1.117 GB, free: 2.148 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.684e-05/1.185, allocations: 77.41 kB / 1.117 GB, free: 2.062 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00345/1.188, allocations: 2.059 MB / 1.119 GB, free: 15.98 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0003969/1.189, allocations: 57.7 kB / 1.119 GB, free: 15.92 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.001537/1.19, allocations: 2.014 MB / 1.121 GB, free: 13.89 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007842/1.191, allocations: 0.6777 MB / 1.122 GB, free: 13.2 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007486/1.192, allocations: 416.1 kB / 1.122 GB, free: 12.79 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001224/1.192, allocations: 305.1 kB / 1.123 GB, free: 12.48 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002158/1.194, allocations: 1.433 MB / 1.124 GB, free: 11.05 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002593/1.197, allocations: 2.013 MB / 1.126 GB, free: 8.777 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004923/1.202, allocations: 3.692 MB / 1.13 GB, free: 4.844 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.044e-05/1.202, allocations: 4 kB / 1.13 GB, free: 4.84 MB / 0.8887 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.0112/1.213, allocations: 5.661 MB / 1.135 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.489e-05/1.213, allocations: 12 kB / 1.135 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.444e-05/1.213, allocations: 16 kB / 1.135 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006963/1.22, allocations: 2.092 MB / 1.137 GB, free: 12.94 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00157/1.222, allocations: 379.4 kB / 1.137 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03762/1.259, allocations: 35.49 MB / 1.172 GB, free: 6.672 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002593/1.262, allocations: 131.9 kB / 1.172 GB, free: 6.543 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002211/1.262, allocations: 91.98 kB / 1.172 GB, free: 6.453 MB / 0.9356 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 (204): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003011/1.265, allocations: 1.512 MB / 1.174 GB, free: 4.93 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000638/1.266, allocations: 276.7 kB / 1.174 GB, free: 4.656 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01034/1.276, allocations: 5.215 MB / 1.179 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/1.276, allocations: 20.28 kB / 1.179 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.407e-05/1.276, allocations: 16 kB / 1.179 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.969e-05/1.276, allocations: 11.91 kB / 1.179 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01879/1.295, allocations: 9.673 MB / 1.189 GB, free: 5.438 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.875e-05/1.295, allocations: 11.92 kB / 1.189 GB, free: 5.426 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008903/1.296, allocations: 215.6 kB / 1.189 GB, free: 5.215 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006116/1.302, allocations: 1.841 MB / 1.191 GB, free: 3.316 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002976/1.302, allocations: 44 kB / 1.191 GB, free: 3.273 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03684/1.339, allocations: 34.5 MB / 1.224 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/1.339, allocations: 11.94 kB / 1.224 GB, free: 14.35 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01033/1.35, allocations: 4.92 MB / 1.229 GB, free: 9.273 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001875/1.352, allocations: 0.6148 MB / 1.23 GB, free: 8.637 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005486/1.352, allocations: 43.91 kB / 1.23 GB, free: 8.594 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001372/1.354, allocations: 127.8 kB / 1.23 GB, free: 8.469 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007858/1.354, allocations: 193.6 kB / 1.23 GB, free: 8.281 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001336/1.354, allocations: 52 kB / 1.23 GB, free: 8.23 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00202/1.356, allocations: 1.386 MB / 1.232 GB, free: 6.836 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.356, allocations: 0 / 1.232 GB, free: 6.836 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004141/1.361, allocations: 1.047 MB / 1.233 GB, free: 5.789 MB / 0.9981 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 (112): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000377/1.361, allocations: 170.9 kB / 1.233 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01034/1.371, allocations: 6.268 MB / 1.239 GB, free: 15.1 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/1.371, allocations: 0.875 kB / 1.239 GB, free: 15.1 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.006934/1.378, allocations: 4.398 MB / 1.243 GB, free: 10.48 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004726/1.383, allocations: 0.9188 MB / 1.244 GB, free: 9.57 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4756/1.859, allocations: 10.04 MB / 1.254 GB, free: 270.7 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005688/1.865, allocations: 3.122 MB / 1.257 GB, free: 269.9 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.002336/1.867, allocations: 0.5223 MB / 1.257 GB, free: 269.8 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004333/1.867, allocations: 146.3 kB / 1.258 GB, free: 269.8 MB / 1.014 GB Notification: Performance of SimCode: time 2.134e-06/1.867, allocations: 0.9375 kB / 1.258 GB, free: 269.8 MB / 1.014 GB Notification: Performance of Templates: time 0.09671/1.964, allocations: 58.22 MB / 1.314 GB, free: 240.2 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches