Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.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.Loads.Examples.ParallelResistors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R.i.1.|R.i.2.|R1.i.1.|R1.i.2.|source.S.1.|source.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R.i.1.|R.i.2.|R1.i.1.|R1.i.2.|source.S.1.|source.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.401/2.401, allocations: 390.3 MB / 402.8 MB, free: 6.691 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.001143/0.001143, allocations: 188.8 kB / 496.1 MB, free: 12.86 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.505/1.505, allocations: 221.3 MB / 0.7915 GB, free: 5.387 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.0009936/0.0009936, allocations: 83.97 kB / 0.9317 GB, free: 5.699 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.066e-05/3.069e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3389, allocations: 143 MB / 1.219 GB, free: 13.51 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.031/1.37, allocations: 166.3 MB / 1.381 GB, free: 5.113 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/1.371, allocations: 92.78 kB / 1.381 GB, free: 5.062 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.03616/1.407, allocations: 14.7 MB / 1.396 GB, free: 8.59 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.703e-06/1.407, allocations: 0 / 1.396 GB, free: 8.59 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 2.444e-05/1.407, allocations: 4 kB / 1.396 GB, free: 8.586 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0008748/1.408, allocations: 472.6 kB / 1.396 GB, free: 8.094 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/1.408, allocations: 12.03 kB / 1.396 GB, free: 8.082 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007121/1.408, allocations: 83.56 kB / 1.396 GB, free: 8 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000373/1.409, allocations: 241.4 kB / 1.396 GB, free: 7.738 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/1.409, allocations: 15.48 kB / 1.396 GB, free: 7.727 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.825e-05/1.409, allocations: 11.98 kB / 1.396 GB, free: 7.715 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005239/1.409, allocations: 290.8 kB / 1.397 GB, free: 7.469 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/1.41, allocations: 7.922 kB / 1.397 GB, free: 7.461 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.682e-05/1.41, allocations: 4 kB / 1.397 GB, free: 7.457 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.898e-05/1.41, allocations: 19.17 kB / 1.397 GB, free: 7.441 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00039/1.41, allocations: 225.3 kB / 1.397 GB, free: 7.289 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/1.412, allocations: 1.509 MB / 1.398 GB, free: 5.766 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004261/1.412, allocations: 247.4 kB / 1.399 GB, free: 5.566 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001773/1.412, allocations: 121.2 kB / 1.399 GB, free: 5.477 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/1.412, allocations: 0 / 1.399 GB, free: 5.477 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.678e-05/1.413, allocations: 38.5 kB / 1.399 GB, free: 5.43 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/1.413, allocations: 4 kB / 1.399 GB, free: 5.426 MB / 0.8542 GB Notification: Performance of matching and sorting (n=15): time 0.0004588/1.413, allocations: 221.4 kB / 1.399 GB, free: 5.254 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.368e-05/1.413, allocations: 81.06 kB / 1.399 GB, free: 5.156 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/1.413, allocations: 161.4 kB / 1.399 GB, free: 5.008 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.897e-05/1.413, allocations: 33.27 kB / 1.399 GB, free: 4.973 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/1.413, allocations: 146.8 kB / 1.399 GB, free: 4.836 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 5.872e-05/1.414, allocations: 46.27 kB / 1.399 GB, free: 4.797 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.642e-05/1.414, allocations: 7.562 kB / 1.399 GB, free: 4.793 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001696/1.414, allocations: 329.9 kB / 1.4 GB, free: 4.469 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002306/1.414, allocations: 91.2 kB / 1.4 GB, free: 4.41 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001916/1.414, allocations: 146.5 kB / 1.4 GB, free: 4.273 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001728/1.414, allocations: 113.1 kB / 1.4 GB, free: 4.195 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/1.414, allocations: 0 / 1.4 GB, free: 4.195 MB / 0.8542 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004254/1.415, allocations: 281.5 kB / 1.4 GB, free: 3.984 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003846/1.415, allocations: 0.701 MB / 1.401 GB, free: 3.238 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/1.415, allocations: 4 kB / 1.401 GB, free: 3.234 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.056e-05/1.415, allocations: 7.984 kB / 1.401 GB, free: 3.227 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004869/1.416, allocations: 59.64 kB / 1.401 GB, free: 3.172 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/1.416, allocations: 8 kB / 1.401 GB, free: 3.164 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002108/1.416, allocations: 34.69 kB / 1.401 GB, free: 3.133 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/1.416, allocations: 7.938 kB / 1.401 GB, free: 3.125 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 9.758e-06/1.416, allocations: 4 kB / 1.401 GB, free: 3.121 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000318/1.416, allocations: 207.5 kB / 1.401 GB, free: 2.977 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.404e-06/1.416, allocations: 224 / 1.401 GB, free: 2.977 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.236e-06/1.416, allocations: 12 kB / 1.401 GB, free: 2.965 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002724/1.417, allocations: 55.89 kB / 1.401 GB, free: 2.91 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/1.417, allocations: 4 kB / 1.401 GB, free: 2.906 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001583/1.417, allocations: 27.33 kB / 1.401 GB, free: 2.883 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.99e-05/1.417, allocations: 11.95 kB / 1.401 GB, free: 2.871 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.945e-05/1.417, allocations: 116.5 kB / 1.402 GB, free: 2.758 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.515e-05/1.417, allocations: 19.81 kB / 1.402 GB, free: 2.738 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005271/1.418, allocations: 248.1 kB / 1.402 GB, free: 2.555 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/1.418, allocations: 4 kB / 1.402 GB, free: 2.551 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/1.418, allocations: 0 / 1.402 GB, free: 2.551 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/1.418, allocations: 0 / 1.402 GB, free: 2.551 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009436/1.419, allocations: 0.669 MB / 1.402 GB, free: 1.91 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/1.419, allocations: 4 kB / 1.402 GB, free: 1.906 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003119/1.419, allocations: 43.95 kB / 1.403 GB, free: 1.863 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.111e-06/1.419, allocations: 4 kB / 1.403 GB, free: 1.859 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/1.419, allocations: 3.938 kB / 1.403 GB, free: 1.859 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.663e-06/1.419, allocations: 11.89 kB / 1.403 GB, free: 1.848 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/1.419, allocations: 0 / 1.403 GB, free: 1.848 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004618/1.42, allocations: 482.4 kB / 1.403 GB, free: 1.375 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001362/1.42, allocations: 112.6 kB / 1.403 GB, free: 1.254 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/1.42, allocations: 4 kB / 1.403 GB, free: 1.25 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002565/1.42, allocations: 22.91 kB / 1.403 GB, free: 1.23 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.769e-05/1.42, allocations: 23.12 kB / 1.403 GB, free: 1.211 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/1.42, allocations: 4 kB / 1.403 GB, free: 1.207 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001112/1.42, allocations: 140 kB / 1.403 GB, free: 1.086 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.7e-07/1.42, allocations: 4 kB / 1.403 GB, free: 1.082 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0005316/1.421, allocations: 82.97 kB / 1.403 GB, free: 1.008 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001776/1.421, allocations: 111 kB / 1.404 GB, free: 0.8945 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0005657/1.421, allocations: 328 kB / 1.404 GB, free: 0.6641 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.421, allocations: 0.875 kB / 1.404 GB, free: 0.6641 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001966/1.422, allocations: 116.6 kB / 1.404 GB, free: 0.5742 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003296/1.422, allocations: 28.36 kB / 1.404 GB, free: 0.5508 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007186/1.423, allocations: 316.5 kB / 1.404 GB, free: 256 kB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004139/1.423, allocations: 0.7552 MB / 1.405 GB, free: 15.48 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0002462/1.423, allocations: 81.45 kB / 1.405 GB, free: 15.39 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.282e-05/1.424, allocations: 19.42 kB / 1.405 GB, free: 15.38 MB / 0.8698 GB Notification: Performance of SimCode: time 3.1e-07/1.424, allocations: 0 / 1.405 GB, free: 15.38 MB / 0.8698 GB Notification: Performance of Templates: time 0.005797/1.429, allocations: 2.265 MB / 1.407 GB, free: 13.13 MB / 0.8698 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches