Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.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.OnePhase.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.OnePhase.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.OnePhase.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.OnePhase.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 99.86 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.001158/0.001159, 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.497/1.497, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.73/2.73, allocations: 436.5 MB / 0.7104 GB, free: 7.922 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004469/0.0004472, allocations: 12 kB / 0.8708 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8811/0.8816, allocations: 153.6 MB / 1.021 GB, free: 1.145 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01115/0.8928, allocations: 9.25 MB / 1.03 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01244/0.9052, allocations: 8.05 MB / 1.038 GB, free: 15.79 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001621/0.9069, allocations: 51.62 kB / 1.038 GB, free: 15.74 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0008222/0.9077, allocations: 254.3 kB / 1.038 GB, free: 15.49 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.004313/0.9121, allocations: 1.256 MB / 1.039 GB, free: 14.23 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001518/0.9136, allocations: 473.9 kB / 1.04 GB, free: 13.77 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.002625/0.9162, allocations: 1.382 MB / 1.041 GB, free: 12.39 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002983/0.9192, allocations: 1.777 MB / 1.043 GB, free: 10.57 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00132/0.9205, allocations: 0.7199 MB / 1.043 GB, free: 9.844 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001084/0.9216, allocations: 0.7432 MB / 1.044 GB, free: 9.098 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001305/0.9218, allocations: 60 kB / 1.044 GB, free: 9.039 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009787/0.9228, allocations: 399.4 kB / 1.045 GB, free: 8.648 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.000415/0.9232, allocations: 442.7 kB / 1.045 GB, free: 8.215 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0003579/0.9236, allocations: 340.8 kB / 1.045 GB, free: 7.875 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.002073/0.9256, allocations: 1.907 MB / 1.047 GB, free: 5.965 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.9256, allocations: 0 / 1.047 GB, free: 5.965 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.673e-06/0.9257, allocations: 0 / 1.047 GB, free: 5.965 MB / 0.795 GB Notification: Performance of Transformations before backend: time 2.95e-05/0.9257, allocations: 3.938 kB / 1.047 GB, free: 5.961 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.003108/0.9288, allocations: 1.722 MB / 1.049 GB, free: 4.184 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.9289, allocations: 12.03 kB / 1.049 GB, free: 4.172 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01088/0.9397, allocations: 2.12 MB / 1.051 GB, free: 2.047 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002942/0.9427, allocations: 1.075 MB / 1.052 GB, free: 0.9141 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.794e-05/0.9428, allocations: 86.31 kB / 1.052 GB, free: 0.8281 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002177/0.9431, allocations: 112 kB / 1.052 GB, free: 0.7188 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005779/0.9488, allocations: 2.486 MB / 1.055 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.454e-05/0.9489, allocations: 11.84 kB / 1.055 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001621/0.9491, allocations: 55.98 kB / 1.055 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003843/0.9495, allocations: 130.1 kB / 1.055 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007419/0.9569, allocations: 2.58 MB / 1.057 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01503/0.972, allocations: 10.11 MB / 1.067 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006057/0.9781, allocations: 2.003 MB / 1.069 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.411e-05/0.9781, allocations: 12.34 kB / 1.069 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.9782, allocations: 42.98 kB / 1.069 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=53): time 2.806e-06/0.9782, allocations: 0 / 1.069 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of matching and sorting (n=81): time 0.03113/1.009, allocations: 8.77 MB / 1.078 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.104e-05/1.009, allocations: 68.05 kB / 1.078 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001705/1.011, allocations: 1.085 MB / 1.079 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001788/1.011, allocations: 37.7 kB / 1.079 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006052/1.012, allocations: 0.7418 MB / 1.08 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000289/1.012, allocations: 272 kB / 1.08 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.123e-05/1.012, allocations: 20 kB / 1.08 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001436/1.012, allocations: 341.9 kB / 1.08 GB, free: 3.004 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002952/1.015, allocations: 1.095 MB / 1.081 GB, free: 1.906 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003128/1.019, allocations: 1.313 MB / 1.083 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003072/1.022, allocations: 1.15 MB / 1.084 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/1.022, allocations: 0 / 1.084 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008813/1.03, allocations: 3.3 MB / 1.087 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/1.031, allocations: 8 kB / 1.087 GB, free: 12 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/1.031, allocations: 8 kB / 1.087 GB, free: 12 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002742/1.033, allocations: 0.7914 MB / 1.088 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001935/1.035, allocations: 431.3 kB / 1.088 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01696/1.052, allocations: 14.97 MB / 1.103 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002414/1.055, allocations: 299.6 kB / 1.103 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/1.055, allocations: 51.97 kB / 1.103 GB, free: 10.37 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 (82): * Single equations (assignments): 74 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 2,(2,100.0%) 2,(3,100.0%) 5,(3,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008347/1.056, allocations: 401.5 kB / 1.104 GB, free: 9.969 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002623/1.056, allocations: 146.3 kB / 1.104 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008544/1.065, allocations: 3.241 MB / 1.107 GB, free: 6.547 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/1.065, allocations: 8 kB / 1.107 GB, free: 6.539 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/1.065, allocations: 12 kB / 1.107 GB, free: 6.527 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/1.065, allocations: 7.922 kB / 1.107 GB, free: 6.52 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01178/1.076, allocations: 4.936 MB / 1.112 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/1.076, allocations: 0 / 1.112 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001619/1.078, allocations: 371.7 kB / 1.112 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002286/1.08, allocations: 0.6943 MB / 1.113 GB, free: 384 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001209/1.081, allocations: 35.95 kB / 1.113 GB, free: 348 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01545/1.096, allocations: 14.61 MB / 1.127 GB, free: 0.6602 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/1.096, allocations: 4 kB / 1.127 GB, free: 0.6562 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00905/1.105, allocations: 3.221 MB / 1.13 GB, free: 13.27 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001493/1.107, allocations: 391.1 kB / 1.131 GB, free: 12.86 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002118/1.107, allocations: 20.22 kB / 1.131 GB, free: 12.84 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001876/1.109, allocations: 299.5 kB / 1.131 GB, free: 12.55 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004096/1.109, allocations: 88.44 kB / 1.131 GB, free: 12.46 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.955e-05/1.109, allocations: 35.97 kB / 1.131 GB, free: 12.43 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001491/1.111, allocations: 0.7249 MB / 1.132 GB, free: 11.7 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.21e-07/1.111, allocations: 0 / 1.132 GB, free: 11.7 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001937/1.113, allocations: 436 kB / 1.132 GB, free: 11.27 MB / 0.8887 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 (46): * Single equations (assignments): 38 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(3,100.0%) 5,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(3,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002882/1.113, allocations: 127.2 kB / 1.132 GB, free: 11.14 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.008979/1.122, allocations: 3.652 MB / 1.136 GB, free: 7.387 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/1.122, allocations: 4 kB / 1.136 GB, free: 7.383 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.005059/1.127, allocations: 2.383 MB / 1.138 GB, free: 4.898 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002301/1.129, allocations: 472.5 kB / 1.139 GB, free: 4.438 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008167/1.138, allocations: 3.942 MB / 1.142 GB, free: 452 kB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001936/1.14, allocations: 1.415 MB / 1.144 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.002462/1.142, allocations: 379.9 kB / 1.144 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003365/1.142, allocations: 107.4 kB / 1.144 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of SimCode: time 1.783e-06/1.142, allocations: 3.938 kB / 1.144 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of Templates: time 0.04963/1.192, allocations: 28.09 MB / 1.172 GB, free: 2.812 MB / 0.92 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches