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.001441/0.001441, 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.001653/0.001653, allocations: 177.3 kB / 15.95 MB, free: 216 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.467/1.467, 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.722/2.722, allocations: 436.5 MB / 0.7104 GB, free: 7.785 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000661/0.0006611, allocations: 15.94 kB / 0.8708 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8475/0.8481, allocations: 153.7 MB / 1.021 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.006446/0.8546, allocations: 5.2 MB / 1.026 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00423/0.8589, allocations: 2.964 MB / 1.029 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002929/0.8592, allocations: 23.81 kB / 1.029 GB, free: 8.852 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002829/0.8595, allocations: 111.2 kB / 1.029 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0007875/0.8603, allocations: 346.9 kB / 1.029 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008913/0.8612, allocations: 366.3 kB / 1.03 GB, free: 8.047 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000752/0.862, allocations: 0.6375 MB / 1.03 GB, free: 7.41 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001492/0.8635, allocations: 0.9091 MB / 1.031 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000419/0.8639, allocations: 326.8 kB / 1.031 GB, free: 6.152 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004657/0.8644, allocations: 350.7 kB / 1.032 GB, free: 5.809 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.485e-05/0.8644, allocations: 31.94 kB / 1.032 GB, free: 5.777 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004247/0.8649, allocations: 199.7 kB / 1.032 GB, free: 5.582 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000235/0.8651, allocations: 235.3 kB / 1.032 GB, free: 5.352 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001902/0.8653, allocations: 161.3 kB / 1.032 GB, free: 5.188 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008549/0.8662, allocations: 0.8318 MB / 1.033 GB, free: 4.355 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.8662, allocations: 0 / 1.033 GB, free: 4.355 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.313e-06/0.8662, allocations: 0 / 1.033 GB, free: 4.355 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.139e-05/0.8662, allocations: 0 / 1.033 GB, free: 4.355 MB / 0.7794 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.001299/0.8675, allocations: 0.9076 MB / 1.034 GB, free: 3.398 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.8676, allocations: 12.03 kB / 1.034 GB, free: 3.387 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001275/0.8688, allocations: 202.8 kB / 1.034 GB, free: 3.188 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000773/0.8696, allocations: 0.5132 MB / 1.035 GB, free: 2.633 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.759e-05/0.8697, allocations: 49.27 kB / 1.035 GB, free: 2.586 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.8698, allocations: 67.89 kB / 1.035 GB, free: 2.52 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.8713, allocations: 1.022 MB / 1.036 GB, free: 1.387 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.982e-05/0.8714, allocations: 7.938 kB / 1.036 GB, free: 1.379 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.576e-05/0.8714, allocations: 24 kB / 1.036 GB, free: 1.355 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.004e-05/0.8715, allocations: 73.2 kB / 1.036 GB, free: 1.281 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.8725, allocations: 0.6879 MB / 1.037 GB, free: 0.5938 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005475/0.878, allocations: 5.764 MB / 1.042 GB, free: 10.41 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007907/0.8789, allocations: 0.5865 MB / 1.043 GB, free: 9.773 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.8789, allocations: 8 kB / 1.043 GB, free: 9.766 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/0.8789, allocations: 38.55 kB / 1.043 GB, free: 9.719 MB / 0.795 GB Notification: Performance of pre-optimization done (n=41): time 2.265e-06/0.8789, allocations: 0 / 1.043 GB, free: 9.719 MB / 0.795 GB Notification: Performance of matching and sorting (n=42): time 0.004264/0.8832, allocations: 1.893 MB / 1.045 GB, free: 7.73 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.8833, allocations: 59.36 kB / 1.045 GB, free: 7.66 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005917/0.8839, allocations: 446.8 kB / 1.045 GB, free: 7.211 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.016e-05/0.884, allocations: 41.7 kB / 1.045 GB, free: 7.164 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003501/0.8843, allocations: 391 kB / 1.046 GB, free: 6.777 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.8845, allocations: 145.9 kB / 1.046 GB, free: 6.633 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.623e-05/0.8845, allocations: 12 kB / 1.046 GB, free: 6.621 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001981/0.8847, allocations: 366.8 kB / 1.046 GB, free: 6.254 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003385/0.8851, allocations: 225.2 kB / 1.046 GB, free: 6.035 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004853/0.8855, allocations: 449 kB / 1.047 GB, free: 5.5 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004732/0.886, allocations: 299.8 kB / 1.047 GB, free: 5.207 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.886, allocations: 0 / 1.047 GB, free: 5.207 MB / 0.795 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001635/0.8877, allocations: 0.9795 MB / 1.048 GB, free: 4.207 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.63e-05/0.8877, allocations: 8 kB / 1.048 GB, free: 4.199 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.8877, allocations: 8 kB / 1.048 GB, free: 4.191 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009625/0.8887, allocations: 264 kB / 1.048 GB, free: 3.922 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003632/0.8891, allocations: 103.8 kB / 1.048 GB, free: 3.82 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006735/0.8958, allocations: 6.755 MB / 1.055 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004916/0.8963, allocations: 27.97 kB / 1.055 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.094e-05/0.8964, allocations: 28 kB / 1.055 GB, free: 12.47 MB / 0.8106 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 (55): * Single equations (assignments): 51 * 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 {(2,100.0%) 6,(1,100.0%) 5,(1,100.0%) 3,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000373/0.8968, allocations: 239 kB / 1.055 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.584e-05/0.8969, allocations: 59.34 kB / 1.055 GB, free: 12.17 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001528/0.8984, allocations: 0.8378 MB / 1.056 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.8984, allocations: 8 kB / 1.056 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.8984, allocations: 4 kB / 1.056 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.8984, allocations: 3.984 kB / 1.056 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002745/0.9012, allocations: 1.703 MB / 1.058 GB, free: 9.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.9012, allocations: 0 / 1.058 GB, free: 9.48 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000226/0.9014, allocations: 48.16 kB / 1.058 GB, free: 9.434 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008415/0.9023, allocations: 251.1 kB / 1.058 GB, free: 9.176 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.987e-05/0.9023, allocations: 8 kB / 1.058 GB, free: 9.168 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006253/0.9086, allocations: 6.467 MB / 1.064 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.9086, allocations: 0 / 1.064 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.9102, allocations: 0.9703 MB / 1.065 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003004/0.9105, allocations: 172.3 kB / 1.066 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.556e-05/0.9106, allocations: 8 kB / 1.066 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002715/0.9109, allocations: 23.97 kB / 1.066 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.47e-05/0.911, allocations: 43.89 kB / 1.066 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.911, allocations: 15.94 kB / 1.066 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003471/0.9114, allocations: 294.9 kB / 1.066 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9114, allocations: 4 kB / 1.066 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0008352/0.9122, allocations: 184 kB / 1.066 GB, free: 376 kB / 0.8106 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 (27): * Single equations (assignments): 23 * 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 {(2,100.0%) 2,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001673/0.9124, allocations: 123.1 kB / 1.066 GB, free: 244 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002019/0.9144, allocations: 1.129 MB / 1.067 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.9144, allocations: 0 / 1.067 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.9155, allocations: 0.8042 MB / 1.068 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008661/0.9164, allocations: 178 kB / 1.068 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00238/0.9188, allocations: 1.46 MB / 1.07 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006585/0.9195, allocations: 1.004 MB / 1.071 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0003245/0.9198, allocations: 105.2 kB / 1.071 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.9199, allocations: 35.44 kB / 1.071 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of SimCode: time 6.41e-07/0.9199, allocations: 0 / 1.071 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of Templates: time 0.01877/0.9387, allocations: 8.632 MB / 1.079 GB, free: 2.816 MB / 0.8262 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","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches