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.0011/0.0011, allocations: 100 kB / 15.05 MB, free: 1.105 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.0009512/0.0009513, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.8/2.8, allocations: 436.5 MB / 0.7104 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003547/0.0003548, allocations: 8 kB / 0.8708 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8762/0.8766, allocations: 153.7 MB / 1.021 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01361/0.8902, allocations: 11.9 MB / 1.032 GB, free: 5.152 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01288/0.9032, allocations: 8.639 MB / 1.041 GB, free: 12.49 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001545/0.9047, allocations: 47.62 kB / 1.041 GB, free: 12.45 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0008822/0.9056, allocations: 250.3 kB / 1.041 GB, free: 12.2 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.004216/0.9099, allocations: 1.257 MB / 1.042 GB, free: 10.95 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001722/0.9116, allocations: 0.5213 MB / 1.043 GB, free: 10.43 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.002961/0.9146, allocations: 1.511 MB / 1.044 GB, free: 8.914 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003227/0.9178, allocations: 1.805 MB / 1.046 GB, free: 7.062 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001473/0.9193, allocations: 0.7667 MB / 1.047 GB, free: 6.293 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001265/0.9206, allocations: 0.8406 MB / 1.048 GB, free: 5.449 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001608/0.9208, allocations: 72 kB / 1.048 GB, free: 5.379 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001154/0.9219, allocations: 387.5 kB / 1.048 GB, free: 5 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0004562/0.9224, allocations: 478.5 kB / 1.049 GB, free: 4.531 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0003776/0.9228, allocations: 344.8 kB / 1.049 GB, free: 4.188 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.00201/0.9248, allocations: 2.074 MB / 1.051 GB, free: 2.109 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.9248, allocations: 0 / 1.051 GB, free: 2.109 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.146e-06/0.9248, allocations: 0 / 1.051 GB, free: 2.109 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.036e-05/0.9249, allocations: 0 / 1.051 GB, free: 2.109 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: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.003674/0.9285, allocations: 1.816 MB / 1.053 GB, free: 244 kB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.9286, allocations: 15.98 kB / 1.053 GB, free: 228 kB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01108/0.9397, allocations: 2.17 MB / 1.055 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003215/0.943, allocations: 1.142 MB / 1.056 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.842e-05/0.9431, allocations: 94.3 kB / 1.056 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002804/0.9434, allocations: 119.9 kB / 1.056 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005603/0.949, allocations: 2.683 MB / 1.059 GB, free: 9.805 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.986e-05/0.949, allocations: 11.94 kB / 1.059 GB, free: 9.793 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001622/0.9492, allocations: 51.98 kB / 1.059 GB, free: 9.742 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006027/0.9498, allocations: 182.1 kB / 1.059 GB, free: 9.562 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00736/0.9572, allocations: 2.834 MB / 1.062 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01509/0.9723, allocations: 10.56 MB / 1.072 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006541/0.9788, allocations: 2.576 MB / 1.075 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.595e-05/0.979, allocations: 12.98 kB / 1.075 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.854e-05/0.979, allocations: 51.5 kB / 1.075 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=89): time 2.284e-06/0.979, allocations: 3.938 kB / 1.075 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of matching and sorting (n=131): time 0.0442/1.023, allocations: 13.42 MB / 1.088 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.704e-05/1.023, allocations: 64.72 kB / 1.088 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001547/1.025, allocations: 1.105 MB / 1.089 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.000216/1.025, allocations: 53.7 kB / 1.089 GB, free: 9.961 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004683/1.026, allocations: 0.7117 MB / 1.09 GB, free: 9.242 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004019/1.026, allocations: 457.2 kB / 1.09 GB, free: 8.793 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/1.026, allocations: 28 kB / 1.09 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001267/1.026, allocations: 357.9 kB / 1.091 GB, free: 8.41 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003124/1.029, allocations: 1.354 MB / 1.092 GB, free: 7.055 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003327/1.033, allocations: 1.612 MB / 1.093 GB, free: 5.344 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003301/1.036, allocations: 1.45 MB / 1.095 GB, free: 3.895 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/1.036, allocations: 8 kB / 1.095 GB, free: 3.887 MB / 0.8419 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01123/1.047, allocations: 4.474 MB / 1.099 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.446e-05/1.047, allocations: 8 kB / 1.099 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/1.047, allocations: 12.06 kB / 1.099 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00497/1.052, allocations: 1.419 MB / 1.101 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002135/1.055, allocations: 455.2 kB / 1.101 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02577/1.08, allocations: 25 MB / 1.125 GB, free: 2.684 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00263/1.083, allocations: 311.6 kB / 1.126 GB, free: 2.379 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001705/1.083, allocations: 63.97 kB / 1.126 GB, free: 2.316 MB / 0.8731 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 (linear and non-linear blocks): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(2,100.0%) 4,(1,100.0%) 1,(2,100.0%) 4,(3,100.0%) 9,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 9,(3,100.0%) 9,(1,100.0%) 1,(3,100.0%) 9,(2,100.0%) 4,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009741/1.084, allocations: 438.8 kB / 1.126 GB, free: 1.879 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002818/1.084, allocations: 162.1 kB / 1.126 GB, free: 1.719 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01113/1.096, allocations: 4.473 MB / 1.131 GB, free: 13.19 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.168e-05/1.096, allocations: 19.98 kB / 1.131 GB, free: 13.17 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.631e-05/1.096, allocations: 12 kB / 1.131 GB, free: 13.16 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.196e-05/1.096, allocations: 11.94 kB / 1.131 GB, free: 13.14 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01553/1.111, allocations: 6.81 MB / 1.137 GB, free: 6.168 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/1.111, allocations: 0 / 1.137 GB, free: 6.168 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001704/1.113, allocations: 391.3 kB / 1.138 GB, free: 5.785 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004459/1.118, allocations: 1.299 MB / 1.139 GB, free: 4.445 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001293/1.118, allocations: 43.92 kB / 1.139 GB, free: 4.402 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02546/1.143, allocations: 23.98 MB / 1.163 GB, free: 10.68 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/1.143, allocations: 7.938 kB / 1.163 GB, free: 10.68 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01085/1.154, allocations: 4.388 MB / 1.167 GB, free: 6.109 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001113/1.155, allocations: 459 kB / 1.167 GB, free: 5.641 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002673/1.156, allocations: 28 kB / 1.167 GB, free: 5.613 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002031/1.158, allocations: 311.5 kB / 1.168 GB, free: 5.309 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004138/1.158, allocations: 132.7 kB / 1.168 GB, free: 5.176 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001332/1.158, allocations: 55.92 kB / 1.168 GB, free: 5.121 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001048/1.159, allocations: 0.737 MB / 1.169 GB, free: 4.383 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.5e-07/1.159, allocations: 0 / 1.169 GB, free: 4.383 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.002037/1.161, allocations: 0.5742 MB / 1.169 GB, free: 3.809 MB / 0.92 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 (linear and non-linear blocks): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(3,100.0%) 9,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 7,(2,100.0%) 4,(3,100.0%) 9,(2,100.0%) 4,(3,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002903/1.162, allocations: 135.7 kB / 1.169 GB, free: 3.668 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.01096/1.172, allocations: 5.139 MB / 1.174 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/1.173, allocations: 0 / 1.174 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.007451/1.18, allocations: 3.512 MB / 1.178 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002677/1.183, allocations: 492.1 kB / 1.178 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009283/1.192, allocations: 4.531 MB / 1.183 GB, free: 5.629 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001315/1.193, allocations: 1.508 MB / 1.184 GB, free: 4.09 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.001919/1.195, allocations: 425.6 kB / 1.184 GB, free: 3.668 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003789/1.196, allocations: 111.4 kB / 1.185 GB, free: 3.562 MB / 0.9356 GB Notification: Performance of SimCode: time 6.51e-07/1.196, allocations: 0 / 1.185 GB, free: 3.562 MB / 0.9356 GB Notification: Performance of Templates: time 0.05903/1.255, allocations: 36.12 MB / 1.22 GB, free: 15.86 MB / 0.9825 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 -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","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches