Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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.OnePhase.Lines.Examples.ACLine_R,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.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,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.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009456/0.0009456, allocations: 87.98 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 183.1 kB / 16.92 MB, free: 6.652 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.451/1.451, allocations: 223.3 MB / 241 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.868/2.868, allocations: 462.7 MB / 0.7371 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004088/0.0004089, allocations: 9.969 kB / 0.9034 GB, free: 36.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3429, allocations: 159.6 MB / 1.059 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.00734/0.3503, allocations: 6.309 MB / 1.065 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.004946/0.3553, allocations: 3.009 MB / 1.068 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000685/0.356, allocations: 23.81 kB / 1.068 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0005644/0.3566, allocations: 134.8 kB / 1.069 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001462/0.358, allocations: 481.7 kB / 1.069 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001126/0.3592, allocations: 387.3 kB / 1.069 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.00181/0.361, allocations: 1.583 MB / 1.071 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001878/0.3629, allocations: 1.006 MB / 1.072 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007478/0.3637, allocations: 394.3 kB / 1.072 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008097/0.3645, allocations: 0.4941 MB / 1.073 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001235/0.3646, allocations: 36 kB / 1.073 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008587/0.3655, allocations: 435.1 kB / 1.073 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0003262/0.3658, allocations: 279.1 kB / 1.074 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0005855/0.3664, allocations: 431.5 kB / 1.074 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001045/0.3675, allocations: 0.9119 MB / 1.075 GB, free: 5 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3675, allocations: 7.938 kB / 1.075 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3675, allocations: 0 / 1.075 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.861e-05/0.3675, allocations: 0 / 1.075 GB, free: 4.992 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001863/0.3694, allocations: 0.9973 MB / 1.076 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.3694, allocations: 15.97 kB / 1.076 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001727/0.3712, allocations: 243.5 kB / 1.076 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009847/0.3722, allocations: 0.5413 MB / 1.077 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.404e-05/0.3722, allocations: 49.67 kB / 1.077 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.3724, allocations: 64.36 kB / 1.077 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001509/0.3739, allocations: 1.081 MB / 1.078 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.771e-05/0.3739, allocations: 15.94 kB / 1.078 GB, free: 1.793 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.344e-05/0.374, allocations: 31.98 kB / 1.078 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001502/0.3742, allocations: 81.25 kB / 1.078 GB, free: 1.68 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001138/0.3753, allocations: 0.7504 MB / 1.079 GB, free: 0.9258 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005103/0.3804, allocations: 5.901 MB / 1.084 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009655/0.3814, allocations: 0.5533 MB / 1.085 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004336/0.3819, allocations: 330 kB / 1.085 GB, free: 9.711 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.3819, allocations: 4.438 kB / 1.085 GB, free: 9.707 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.3819, allocations: 43 kB / 1.085 GB, free: 9.656 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=47): time 2.344e-06/0.3819, allocations: 0 / 1.085 GB, free: 9.656 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48): time 0.003898/0.3858, allocations: 2.006 MB / 1.087 GB, free: 7.559 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.622e-05/0.3859, allocations: 55.84 kB / 1.087 GB, free: 7.492 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006254/0.3865, allocations: 0.5585 MB / 1.088 GB, free: 6.922 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.397e-05/0.3866, allocations: 33.7 kB / 1.088 GB, free: 6.883 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002563/0.3868, allocations: 414.9 kB / 1.088 GB, free: 6.469 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.387, allocations: 173.6 kB / 1.088 GB, free: 6.297 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.169e-05/0.3871, allocations: 61.69 kB / 1.088 GB, free: 6.23 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001454/0.3872, allocations: 374.7 kB / 1.089 GB, free: 5.855 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004019/0.3876, allocations: 277.8 kB / 1.089 GB, free: 5.582 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005314/0.3882, allocations: 493 kB / 1.09 GB, free: 5.004 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.3892, allocations: 0.8016 MB / 1.09 GB, free: 4.105 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.3892, allocations: 4 kB / 1.09 GB, free: 4.102 MB / 0.8419 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001812/0.391, allocations: 1.082 MB / 1.091 GB, free: 3 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.3911, allocations: 8 kB / 1.091 GB, free: 2.992 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.3911, allocations: 11.98 kB / 1.091 GB, free: 2.98 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008362/0.3919, allocations: 280 kB / 1.092 GB, free: 2.695 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004734/0.3924, allocations: 123.8 kB / 1.092 GB, free: 2.574 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006086/0.3985, allocations: 6.614 MB / 1.098 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006331/0.3992, allocations: 35.95 kB / 1.098 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.892e-05/0.3992, allocations: 32.19 kB / 1.098 GB, free: 11.36 MB / 0.8575 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 (67): * Single equations (assignments): 63 * 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 {(2,6,100.0%), (2,4,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.0003538/0.3996, allocations: 253.5 kB / 1.099 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.3997, allocations: 71.31 kB / 1.099 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00162/0.4013, allocations: 0.8884 MB / 1.1 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.4013, allocations: 12 kB / 1.1 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.4014, allocations: 4 kB / 1.1 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.4014, allocations: 3.984 kB / 1.1 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002527/0.4039, allocations: 1.717 MB / 1.101 GB, free: 8.305 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.4039, allocations: 3.938 kB / 1.101 GB, free: 8.301 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002718/0.4042, allocations: 59.94 kB / 1.101 GB, free: 8.242 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007564/0.405, allocations: 275.3 kB / 1.102 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.113e-05/0.405, allocations: 8 kB / 1.102 GB, free: 7.953 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005928/0.4109, allocations: 6.591 MB / 1.108 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.411, allocations: 3.938 kB / 1.108 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001592/0.4126, allocations: 0.9878 MB / 1.109 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002693/0.4129, allocations: 192.2 kB / 1.109 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.708e-05/0.4129, allocations: 19.92 kB / 1.109 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003765/0.4133, allocations: 27.91 kB / 1.109 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.4134, allocations: 43.89 kB / 1.109 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.183e-05/0.4135, allocations: 19.98 kB / 1.109 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004228/0.4139, allocations: 383.1 kB / 1.11 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4139, allocations: 0 / 1.11 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0008232/0.4147, allocations: 224 kB / 1.11 GB, free: 14.88 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001624/0.4149, allocations: 111.2 kB / 1.11 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001993/0.4169, allocations: 1.275 MB / 1.111 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.4169, allocations: 0 / 1.111 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001239/0.4182, allocations: 0.8894 MB / 1.112 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.4194, allocations: 207.6 kB / 1.112 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002247/0.4216, allocations: 1.724 MB / 1.114 GB, free: 10.51 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005881/0.4222, allocations: 1.009 MB / 1.115 GB, free: 9.477 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001492/0.4224, allocations: 43.44 kB / 1.115 GB, free: 9.434 MB / 0.8731 GB Notification: Performance of SimCode: time 2.284e-06/0.4224, allocations: 0 / 1.115 GB, free: 9.434 MB / 0.8731 GB Notification: Performance of Templates: time 0.02326/0.4456, allocations: 20.55 MB / 1.135 GB, free: 4.926 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches