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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001316/0.001316, allocations: 108 kB / 15.6 MB, free: 132 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.001539/0.001539, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.389/1.389, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.694/2.694, allocations: 472.6 MB / 0.7451 GB, free: 4.652 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001246, allocations: 66.81 kB / 0.912 GB, free: 33.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2931, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.008251/0.3014, allocations: 6.744 MB / 1.075 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00497/0.3064, allocations: 3.04 MB / 1.078 GB, free: 0.5547 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004521/0.3069, allocations: 27.81 kB / 1.078 GB, free: 0.5273 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.002349/0.3093, allocations: 0.9492 MB / 1.079 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001149/0.3104, allocations: 0.4973 MB / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009911/0.3114, allocations: 430.6 kB / 1.08 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.00116/0.3126, allocations: 1.217 MB / 1.081 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008737/0.3135, allocations: 0.6664 MB / 1.081 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005644/0.3141, allocations: 478.2 kB / 1.082 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006/0.3147, allocations: 0.5137 MB / 1.082 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001026/0.3148, allocations: 68 kB / 1.082 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006794/0.3155, allocations: 375.2 kB / 1.083 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002757/0.3158, allocations: 307.2 kB / 1.083 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0004059/0.3162, allocations: 453.7 kB / 1.084 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001164/0.3174, allocations: 1.203 MB / 1.085 GB, free: 9.395 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3174, allocations: 0 / 1.085 GB, free: 9.395 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.106e-06/0.3174, allocations: 4 kB / 1.085 GB, free: 9.391 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.3e-05/0.3174, allocations: 4 kB / 1.085 GB, free: 9.387 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001868/0.3193, allocations: 1.157 MB / 1.086 GB, free: 8.176 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.3193, allocations: 8.031 kB / 1.086 GB, free: 8.168 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001526/0.3209, allocations: 235.6 kB / 1.086 GB, free: 7.938 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007781/0.3217, allocations: 0.5415 MB / 1.087 GB, free: 7.359 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.744e-05/0.3217, allocations: 45.67 kB / 1.087 GB, free: 7.316 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.3218, allocations: 68.27 kB / 1.087 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.3233, allocations: 1.089 MB / 1.088 GB, free: 6.047 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.481e-05/0.3233, allocations: 7.938 kB / 1.088 GB, free: 6.039 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.607e-05/0.3234, allocations: 31.98 kB / 1.088 GB, free: 6.008 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001555/0.3235, allocations: 89.19 kB / 1.088 GB, free: 5.918 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001183/0.3247, allocations: 0.7504 MB / 1.089 GB, free: 5.168 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005233/0.33, allocations: 5.893 MB / 1.094 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009924/0.331, allocations: 0.5516 MB / 1.095 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000436/0.3314, allocations: 330 kB / 1.095 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.947e-05/0.3315, allocations: 4.438 kB / 1.095 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.3315, allocations: 39 kB / 1.095 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=47): time 2.605e-06/0.3315, allocations: 0 / 1.095 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of matching and sorting (n=48): time 0.004001/0.3355, allocations: 1.99 MB / 1.097 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/0.3356, allocations: 55.84 kB / 1.097 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007826/0.3364, allocations: 0.5509 MB / 1.098 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.865e-05/0.3365, allocations: 37.7 kB / 1.098 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003607/0.3368, allocations: 414.9 kB / 1.098 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001801/0.337, allocations: 177.5 kB / 1.098 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002172/0.3372, allocations: 126.6 kB / 1.099 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000225/0.3375, allocations: 374.7 kB / 1.099 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004103/0.3379, allocations: 277.8 kB / 1.099 GB, free: 9.793 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005764/0.3385, allocations: 489 kB / 1.1 GB, free: 9.223 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.3395, allocations: 0.8132 MB / 1.1 GB, free: 8.316 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.3395, allocations: 4 kB / 1.1 GB, free: 8.312 MB / 0.8575 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001733/0.3412, allocations: 1.086 MB / 1.102 GB, free: 7.203 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.3413, allocations: 8 kB / 1.102 GB, free: 7.195 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.3413, allocations: 7.938 kB / 1.102 GB, free: 7.188 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008566/0.3422, allocations: 280 kB / 1.102 GB, free: 6.902 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004688/0.3426, allocations: 127.7 kB / 1.102 GB, free: 6.777 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006283/0.3489, allocations: 7.142 MB / 1.109 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006596/0.3496, allocations: 44.03 kB / 1.109 GB, free: 15.03 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.655e-05/0.3497, allocations: 28 kB / 1.109 GB, free: 15 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 (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.0003866/0.3501, allocations: 254.6 kB / 1.109 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.3502, allocations: 71.16 kB / 1.109 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001548/0.3517, allocations: 0.8885 MB / 1.11 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.3518, allocations: 7.984 kB / 1.11 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3518, allocations: 4 kB / 1.11 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.3518, allocations: 0 / 1.11 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00258/0.3544, allocations: 1.724 MB / 1.112 GB, free: 11.94 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.3544, allocations: 0 / 1.112 GB, free: 11.94 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002779/0.3547, allocations: 72.02 kB / 1.112 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007508/0.3554, allocations: 263.2 kB / 1.112 GB, free: 11.6 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.3555, allocations: 15.94 kB / 1.112 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006141/0.3616, allocations: 7.122 MB / 1.119 GB, free: 3.902 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3617, allocations: 0 / 1.119 GB, free: 3.902 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001561/0.3632, allocations: 0.9834 MB / 1.12 GB, free: 2.867 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002702/0.3635, allocations: 192.1 kB / 1.12 GB, free: 2.66 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.272e-05/0.3636, allocations: 15.98 kB / 1.12 GB, free: 2.645 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003819/0.364, allocations: 35.84 kB / 1.12 GB, free: 2.609 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.3641, allocations: 47.88 kB / 1.12 GB, free: 2.562 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.86e-05/0.3642, allocations: 16 kB / 1.12 GB, free: 2.547 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004151/0.3646, allocations: 387.1 kB / 1.121 GB, free: 2.176 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3646, allocations: 0 / 1.121 GB, free: 2.176 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0007995/0.3654, allocations: 220 kB / 1.121 GB, free: 1.961 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.0001676/0.3656, allocations: 115.2 kB / 1.121 GB, free: 1.836 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002038/0.3676, allocations: 1.326 MB / 1.122 GB, free: 472 kB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3676, allocations: 0 / 1.122 GB, free: 472 kB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.3688, allocations: 0.8971 MB / 1.123 GB, free: 15.51 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001057/0.3699, allocations: 220.2 kB / 1.123 GB, free: 15.3 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002097/0.372, allocations: 1.342 MB / 1.125 GB, free: 13.91 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005405/0.3726, allocations: 1.005 MB / 1.126 GB, free: 12.88 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0003933/0.373, allocations: 114 kB / 1.126 GB, free: 12.77 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.3731, allocations: 47.42 kB / 1.126 GB, free: 12.72 MB / 0.8887 GB Notification: Performance of SimCode: time 8.41e-07/0.3731, allocations: 4 kB / 1.126 GB, free: 12.71 MB / 0.8887 GB Notification: Performance of Templates: time 0.0186/0.3917, allocations: 11.17 MB / 1.137 GB, free: 1.68 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/jenkins/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