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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.294/2.294, allocations: 390.3 MB / 402.8 MB, free: 6.664 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 187 kB / 496.1 MB, free: 12.84 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.645/1.645, allocations: 221.3 MB / 0.7915 GB, free: 5.434 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009131/0.0009131, allocations: 99.81 kB / 0.9318 GB, free: 5.742 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.884e-05/2.909e-05, allocations: 8 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3952/0.3952, allocations: 143 MB / 1.219 GB, free: 13.5 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.017/1.412, allocations: 173.6 MB / 1.388 GB, free: 14.03 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002825/1.413, allocations: 93.25 kB / 1.388 GB, free: 13.98 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.09733/1.51, allocations: 40.2 MB / 1.428 GB, free: 11.76 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.763e-06/1.51, allocations: 3.938 kB / 1.428 GB, free: 11.76 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.423e-05/1.51, allocations: 23.98 kB / 1.428 GB, free: 11.73 MB / 0.8855 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.002003/1.512, allocations: 0.856 MB / 1.428 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/1.512, allocations: 8.031 kB / 1.428 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001701/1.514, allocations: 226.1 kB / 1.429 GB, free: 10.66 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001209/1.515, allocations: 0.5316 MB / 1.429 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.261e-05/1.515, allocations: 43.25 kB / 1.429 GB, free: 10.11 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001599/1.516, allocations: 62.11 kB / 1.429 GB, free: 10.07 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001629/1.517, allocations: 1.081 MB / 1.43 GB, free: 9.105 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.554e-05/1.517, allocations: 11.91 kB / 1.43 GB, free: 9.094 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.853e-05/1.517, allocations: 31.44 kB / 1.43 GB, free: 9.082 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.212e-05/1.517, allocations: 60.58 kB / 1.43 GB, free: 9.027 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/1.518, allocations: 0.6697 MB / 1.431 GB, free: 8.562 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005451/1.524, allocations: 5.776 MB / 1.437 GB, free: 2.457 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008463/1.525, allocations: 0.589 MB / 1.437 GB, free: 1.824 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006793/1.526, allocations: 393.4 kB / 1.438 GB, free: 1.438 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.724e-05/1.526, allocations: 8 kB / 1.438 GB, free: 1.43 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/1.526, allocations: 38.34 kB / 1.438 GB, free: 1.383 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=41): time 4.117e-06/1.526, allocations: 3.984 kB / 1.438 GB, free: 1.379 MB / 0.8855 GB Notification: Performance of matching and sorting (n=42): time 0.00243/1.528, allocations: 1.211 MB / 1.439 GB, free: 148 kB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.749e-05/1.528, allocations: 55.41 kB / 1.439 GB, free: 80 kB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00048/1.529, allocations: 388.7 kB / 1.439 GB, free: 15.7 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 4.354e-05/1.529, allocations: 37.7 kB / 1.439 GB, free: 15.65 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.000258/1.529, allocations: 379.2 kB / 1.44 GB, free: 15.27 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.000134/1.529, allocations: 153.8 kB / 1.44 GB, free: 15.12 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.533e-05/1.529, allocations: 8 kB / 1.44 GB, free: 15.11 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001769/1.529, allocations: 362.8 kB / 1.44 GB, free: 14.75 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003654/1.53, allocations: 237 kB / 1.44 GB, free: 14.52 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004785/1.53, allocations: 425.4 kB / 1.441 GB, free: 14.02 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005058/1.531, allocations: 299.6 kB / 1.441 GB, free: 13.72 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/1.531, allocations: 0 / 1.441 GB, free: 13.72 MB / 0.9011 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001913/1.533, allocations: 1.02 MB / 1.442 GB, free: 12.68 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/1.533, allocations: 12.03 kB / 1.442 GB, free: 12.67 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/1.533, allocations: 4 kB / 1.442 GB, free: 12.67 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/1.534, allocations: 319.1 kB / 1.443 GB, free: 12.34 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000315/1.534, allocations: 83.89 kB / 1.443 GB, free: 12.26 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007497/1.541, allocations: 7.086 MB / 1.45 GB, free: 4.617 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005459/1.542, allocations: 31.97 kB / 1.45 GB, free: 4.586 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.137e-05/1.542, allocations: 24 kB / 1.45 GB, free: 4.562 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * 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%) 8,(1,100.0%) 5,(1,100.0%) 3,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001739/1.542, allocations: 140.9 kB / 1.45 GB, free: 4.418 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/1.542, allocations: 55.34 kB / 1.45 GB, free: 4.363 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001713/1.544, allocations: 0.8884 MB / 1.451 GB, free: 3.453 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/1.544, allocations: 11.98 kB / 1.451 GB, free: 3.441 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/1.544, allocations: 4 kB / 1.451 GB, free: 3.438 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/1.544, allocations: 4.172 kB / 1.451 GB, free: 3.434 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003202/1.547, allocations: 1.847 MB / 1.452 GB, free: 1.473 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/1.547, allocations: 3.938 kB / 1.452 GB, free: 1.469 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001924/1.548, allocations: 51.91 kB / 1.452 GB, free: 1.418 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000887/1.549, allocations: 275.4 kB / 1.453 GB, free: 1.137 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.293e-05/1.549, allocations: 11.94 kB / 1.453 GB, free: 1.125 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006621/1.555, allocations: 6.833 MB / 1.459 GB, free: 9.727 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.555, allocations: 0 / 1.459 GB, free: 9.727 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001686/1.557, allocations: 1.002 MB / 1.46 GB, free: 8.637 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002876/1.557, allocations: 172.4 kB / 1.461 GB, free: 8.449 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.772e-05/1.557, allocations: 11.94 kB / 1.461 GB, free: 8.438 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000262/1.558, allocations: 27.97 kB / 1.461 GB, free: 8.41 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.723e-05/1.558, allocations: 31.95 kB / 1.461 GB, free: 8.379 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.56e-05/1.558, allocations: 16 kB / 1.461 GB, free: 8.363 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0003653/1.558, allocations: 297.6 kB / 1.461 GB, free: 8.074 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.5e-07/1.558, allocations: 0 / 1.461 GB, free: 8.074 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0008252/1.559, allocations: 196 kB / 1.461 GB, free: 7.883 MB / 0.9167 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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 {(1,100.0%) 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.0001686/1.559, allocations: 115.2 kB / 1.461 GB, free: 7.762 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001676/1.561, allocations: 1.155 MB / 1.462 GB, free: 6.551 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/1.561, allocations: 8.125 kB / 1.462 GB, free: 6.543 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.001093/1.562, allocations: 0.8073 MB / 1.463 GB, free: 5.684 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008123/1.563, allocations: 169.1 kB / 1.463 GB, free: 5.523 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001489/1.564, allocations: 0.8846 MB / 1.464 GB, free: 4.598 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006058/1.565, allocations: 1.004 MB / 1.465 GB, free: 3.566 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0003026/1.565, allocations: 101.2 kB / 1.465 GB, free: 3.465 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.558e-05/1.565, allocations: 35.44 kB / 1.465 GB, free: 3.43 MB / 0.9167 GB Notification: Performance of SimCode: time 3.1e-07/1.565, allocations: 0 / 1.465 GB, free: 3.43 MB / 0.9167 GB Notification: Performance of Templates: time 0.01476/1.58, allocations: 8.741 MB / 1.474 GB, free: 10.77 MB / 0.9323 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