Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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_L,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.OnePhase.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,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.OnePhase.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001396/0.001397, allocations: 172.7 kB / 15.95 MB, free: 208 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.642/1.642, allocations: 223.3 MB / 240 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.052/3.052, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005297/0.0005299, allocations: 8.656 kB / 0.9021 GB, free: 36.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3852/0.3857, allocations: 159.6 MB / 1.058 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.007271/0.3931, allocations: 5.389 MB / 1.063 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.005248/0.3983, allocations: 2.963 MB / 1.066 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004913/0.3989, allocations: 27.81 kB / 1.066 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003985/0.3993, allocations: 123 kB / 1.066 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0009589/0.4003, allocations: 370.1 kB / 1.067 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009288/0.4012, allocations: 354.3 kB / 1.067 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.00121/0.4024, allocations: 1.209 MB / 1.068 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001574/0.404, allocations: 0.9093 MB / 1.069 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005279/0.4045, allocations: 354.5 kB / 1.069 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005426/0.4051, allocations: 438.4 kB / 1.07 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.091e-05/0.4052, allocations: 28 kB / 1.07 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005322/0.4057, allocations: 255.6 kB / 1.07 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002389/0.406, allocations: 255.3 kB / 1.07 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001419/0.4061, allocations: 161.3 kB / 1.071 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008119/0.4069, allocations: 0.8652 MB / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.4069, allocations: 0 / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.723e-06/0.4069, allocations: 0 / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.538e-06/0.407, allocations: 0 / 1.071 GB, free: 7.629 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001332/0.4083, allocations: 0.9231 MB / 1.072 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.4083, allocations: 8.031 kB / 1.072 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001391/0.4097, allocations: 218.8 kB / 1.072 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007219/0.4105, allocations: 0.5248 MB / 1.073 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.724e-05/0.4105, allocations: 45.31 kB / 1.073 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.691e-05/0.4106, allocations: 63.98 kB / 1.073 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001399/0.412, allocations: 1.029 MB / 1.074 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.575e-05/0.4121, allocations: 7.938 kB / 1.074 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.356e-05/0.4121, allocations: 31.94 kB / 1.074 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.873e-05/0.4122, allocations: 69.27 kB / 1.074 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.4133, allocations: 0.6918 MB / 1.075 GB, free: 3.82 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004984/0.4183, allocations: 5.76 MB / 1.081 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008248/0.4191, allocations: 0.6019 MB / 1.081 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00073/0.4198, allocations: 422.6 kB / 1.081 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.423e-05/0.4199, allocations: 7.938 kB / 1.081 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.4199, allocations: 38.56 kB / 1.082 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=41): time 1.923e-06/0.4199, allocations: 0 / 1.082 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of matching and sorting (n=42): time 0.004168/0.4241, allocations: 2.061 MB / 1.084 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.4242, allocations: 55.41 kB / 1.084 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004586/0.4246, allocations: 450.7 kB / 1.084 GB, free: 9.84 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.4247, allocations: 33.7 kB / 1.084 GB, free: 9.801 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002562/0.4249, allocations: 387 kB / 1.084 GB, free: 9.418 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.4251, allocations: 145.9 kB / 1.085 GB, free: 9.273 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.094e-05/0.4251, allocations: 16 kB / 1.085 GB, free: 9.258 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.4253, allocations: 362.8 kB / 1.085 GB, free: 8.895 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003564/0.4256, allocations: 241.2 kB / 1.085 GB, free: 8.66 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004918/0.4261, allocations: 457 kB / 1.086 GB, free: 8.117 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004456/0.4266, allocations: 311.8 kB / 1.086 GB, free: 7.812 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.4266, allocations: 11.89 kB / 1.086 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001767/0.4284, allocations: 1.054 MB / 1.087 GB, free: 6.727 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.4284, allocations: 8 kB / 1.087 GB, free: 6.719 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.4284, allocations: 4 kB / 1.087 GB, free: 6.715 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009667/0.4294, allocations: 335.9 kB / 1.087 GB, free: 6.375 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003079/0.4297, allocations: 95.81 kB / 1.087 GB, free: 6.281 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006708/0.4364, allocations: 6.939 MB / 1.094 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004821/0.4369, allocations: 36.02 kB / 1.094 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.247e-05/0.437, allocations: 24 kB / 1.094 GB, free: 14.75 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 (53): * Single equations (assignments): 49 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,88.9%) 7,(1,100.0%) 5,(1,100.0%) 3,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003752/0.4374, allocations: 246.1 kB / 1.094 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.4375, allocations: 59.25 kB / 1.094 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001685/0.4392, allocations: 0.9156 MB / 1.095 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.4392, allocations: 7.938 kB / 1.095 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/0.4392, allocations: 4 kB / 1.095 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.4392, allocations: 7.922 kB / 1.095 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002561/0.4418, allocations: 1.696 MB / 1.097 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.4418, allocations: 8 kB / 1.097 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/0.442, allocations: 35.97 kB / 1.097 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008627/0.4428, allocations: 323.2 kB / 1.097 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.258e-05/0.4429, allocations: 12 kB / 1.097 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006854/0.4497, allocations: 6.939 MB / 1.104 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4498, allocations: 0 / 1.104 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001767/0.4515, allocations: 1.003 MB / 1.105 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002663/0.4518, allocations: 184.3 kB / 1.105 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.222e-05/0.4519, allocations: 12 kB / 1.105 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002491/0.4521, allocations: 15.98 kB / 1.105 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.4523, allocations: 43.83 kB / 1.105 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-05/0.4523, allocations: 16 kB / 1.105 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003739/0.4527, allocations: 298.9 kB / 1.106 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.21e-07/0.4527, allocations: 0 / 1.106 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0009428/0.4536, allocations: 196 kB / 1.106 GB, free: 2.02 MB / 0.8575 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 (23): * Single equations (assignments): 19 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,88.9%) 7,(2,100.0%) 2,(1,100.0%) 3,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001689/0.4538, allocations: 115.2 kB / 1.106 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001862/0.4557, allocations: 1.195 MB / 1.107 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.4557, allocations: 0 / 1.107 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001168/0.4569, allocations: 0.8668 MB / 1.108 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000938/0.4578, allocations: 188.9 kB / 1.108 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002184/0.46, allocations: 1.47 MB / 1.11 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005911/0.4606, allocations: 0.9882 MB / 1.111 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003141/0.461, allocations: 101.2 kB / 1.111 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.178e-05/0.461, allocations: 35.44 kB / 1.111 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of SimCode: time 1.002e-06/0.461, allocations: 0 / 1.111 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of Templates: time 0.01559/0.4766, allocations: 9.186 MB / 1.12 GB, free: 3.809 MB / 0.8731 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches