Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.ThreePhasesBalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001132/0.001132, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.418/1.418, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.573/2.573, allocations: 442.6 MB / 0.7165 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 75.19 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3736/0.3751, allocations: 153 MB / 1.027 GB, free: 2.07 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.02476/0.3999, allocations: 14.06 MB / 1.04 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0207/0.4206, allocations: 9.388 MB / 1.05 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002397/0.4231, allocations: 59.62 kB / 1.05 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0063/0.4295, allocations: 1.679 MB / 1.051 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.007706/0.4372, allocations: 1.537 MB / 1.053 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.003045/0.4403, allocations: 0.7634 MB / 1.054 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.005698/0.446, allocations: 2.501 MB / 1.056 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003037/0.4491, allocations: 1.419 MB / 1.057 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002619/0.4517, allocations: 1.039 MB / 1.058 GB, free: 1.492 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002935/0.4546, allocations: 1.144 MB / 1.06 GB, free: 352 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0004/0.4551, allocations: 164 kB / 1.06 GB, free: 188 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00258/0.4577, allocations: 0.7877 MB / 1.06 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0009596/0.4586, allocations: 0.6232 MB / 1.061 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001633/0.4603, allocations: 0.929 MB / 1.062 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.004774/0.4651, allocations: 2.761 MB / 1.065 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.4652, allocations: 7.938 kB / 1.065 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.853e-06/0.4652, allocations: 0 / 1.065 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.406e-05/0.4652, allocations: 0 / 1.065 GB, free: 11.06 MB / 0.8419 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.00631/0.4715, allocations: 2.135 MB / 1.067 GB, free: 8.867 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.4716, allocations: 12.03 kB / 1.067 GB, free: 8.855 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01683/0.4885, allocations: 2.085 MB / 1.069 GB, free: 6.766 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004389/0.4929, allocations: 1.294 MB / 1.07 GB, free: 5.414 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/0.493, allocations: 86.73 kB / 1.07 GB, free: 5.328 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004721/0.4935, allocations: 128 kB / 1.07 GB, free: 5.203 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009305/0.5029, allocations: 2.679 MB / 1.073 GB, free: 2.375 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.505e-05/0.503, allocations: 8 kB / 1.073 GB, free: 2.367 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002698/0.5032, allocations: 51.98 kB / 1.073 GB, free: 2.316 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009441/0.5042, allocations: 182.1 kB / 1.073 GB, free: 2.137 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7199/1.224, allocations: 2.796 MB / 1.076 GB, free: 52.4 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01976/1.244, allocations: 10.46 MB / 1.086 GB, free: 45.91 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008003/1.252, allocations: 2.526 MB / 1.089 GB, free: 45.1 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005057/1.257, allocations: 1.284 MB / 1.09 GB, free: 44.75 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001494/1.257, allocations: 10.72 kB / 1.09 GB, free: 44.75 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.62e-05/1.257, allocations: 43.12 kB / 1.09 GB, free: 44.7 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=89): time 4.849e-06/1.257, allocations: 0 / 1.09 GB, free: 44.7 MB / 0.8419 GB Notification: Performance of matching and sorting (n=131): time 0.06383/1.321, allocations: 13.35 MB / 1.103 GB, free: 41.08 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/1.321, allocations: 65.17 kB / 1.103 GB, free: 41.02 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002382/1.324, allocations: 1.114 MB / 1.104 GB, free: 40.57 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0004111/1.324, allocations: 47.08 kB / 1.104 GB, free: 40.53 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006061/1.325, allocations: 0.7184 MB / 1.105 GB, free: 39.96 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006187/1.325, allocations: 450.8 kB / 1.105 GB, free: 39.62 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006157/1.326, allocations: 265.6 kB / 1.105 GB, free: 39.5 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.662e-05/1.326, allocations: 356.6 kB / 1.106 GB, free: 39.18 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003274/1.329, allocations: 1.337 MB / 1.107 GB, free: 38.8 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003356/1.333, allocations: 1.607 MB / 1.109 GB, free: 38.12 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006286/1.339, allocations: 2.992 MB / 1.112 GB, free: 36.93 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.826e-06/1.339, allocations: 5.375 kB / 1.112 GB, free: 36.93 MB / 0.8419 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01071/1.35, allocations: 4.449 MB / 1.116 GB, free: 34.93 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.857e-05/1.35, allocations: 7.531 kB / 1.116 GB, free: 34.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/1.35, allocations: 8.531 kB / 1.116 GB, free: 34.93 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005151/1.355, allocations: 1.429 MB / 1.117 GB, free: 34.15 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002108/1.357, allocations: 440.5 kB / 1.118 GB, free: 33.98 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02548/1.383, allocations: 26.68 MB / 1.144 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003276/1.386, allocations: 299.7 kB / 1.144 GB, free: 9.902 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003914/1.386, allocations: 62.75 kB / 1.144 GB, free: 9.883 MB / 0.8419 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.00116/1.388, allocations: 441.2 kB / 1.145 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004597/1.388, allocations: 158.4 kB / 1.145 GB, free: 9.488 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01076/1.399, allocations: 4.452 MB / 1.149 GB, free: 6.887 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.513e-05/1.399, allocations: 17.69 kB / 1.149 GB, free: 6.883 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-05/1.399, allocations: 12.38 kB / 1.149 GB, free: 6.883 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.221e-05/1.399, allocations: 9.344 kB / 1.149 GB, free: 6.875 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01438/1.413, allocations: 6.772 MB / 1.156 GB, free: 2.703 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/1.413, allocations: 3.625 kB / 1.156 GB, free: 2.703 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00158/1.415, allocations: 383.2 kB / 1.156 GB, free: 2.543 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004317/1.419, allocations: 1.308 MB / 1.157 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002331/1.42, allocations: 51.83 kB / 1.157 GB, free: 1.785 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02693/1.447, allocations: 25.48 MB / 1.182 GB, free: 7.02 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/1.447, allocations: 3.938 kB / 1.182 GB, free: 7.016 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01054/1.457, allocations: 4.202 MB / 1.186 GB, free: 2.711 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001526/1.459, allocations: 462.9 kB / 1.187 GB, free: 2.238 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002711/1.459, allocations: 27.75 kB / 1.187 GB, free: 2.215 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001887/1.461, allocations: 307.5 kB / 1.187 GB, free: 1.914 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005499/1.462, allocations: 132.6 kB / 1.187 GB, free: 1.785 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/1.462, allocations: 51.95 kB / 1.187 GB, free: 1.734 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001045/1.463, allocations: 0.7526 MB / 1.188 GB, free: 0.9805 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.6e-07/1.463, allocations: 0 / 1.188 GB, free: 0.9805 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002274/1.465, allocations: 0.5664 MB / 1.189 GB, free: 424 kB / 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.0003328/1.465, allocations: 142.9 kB / 1.189 GB, free: 276 kB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.01112/1.476, allocations: 5.133 MB / 1.194 GB, free: 10.97 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.454e-05/1.477, allocations: 4 kB / 1.194 GB, free: 10.97 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.006785/1.483, allocations: 3.489 MB / 1.197 GB, free: 7.316 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002532/1.486, allocations: 0.5534 MB / 1.198 GB, free: 6.793 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008591/1.495, allocations: 3.989 MB / 1.202 GB, free: 2.773 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/1.496, allocations: 1.476 MB / 1.203 GB, free: 1.266 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001598/1.497, allocations: 429.6 kB / 1.204 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004047/1.498, allocations: 111.4 kB / 1.204 GB, free: 0.7305 MB / 0.8887 GB Notification: Performance of SimCode: time 9.92e-07/1.498, allocations: 3.938 kB / 1.204 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of Templates: time 0.06347/1.561, allocations: 38.95 MB / 1.242 GB, free: 10.23 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches