Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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.Sources.Examples.FixedVoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|sen.V|sen.theta",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|sen.V|sen.theta",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 100.1 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.001619/0.001619, 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.428/1.428, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.495/2.495, allocations: 390.3 MB / 0.6653 GB, free: 2.934 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005316/0.0005316, allocations: 16 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7748/0.7754, allocations: 142.3 MB / 0.9535 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource): time 0.00281/0.7782, allocations: 2.033 MB / 0.9555 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001925/0.7802, allocations: 1.3 MB / 0.9568 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.7803, allocations: 6.094 kB / 0.9568 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001319/0.7805, allocations: 20.97 kB / 0.9568 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003215/0.7808, allocations: 85.59 kB / 0.9569 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003779/0.7812, allocations: 143.8 kB / 0.957 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001962/0.7814, allocations: 127.8 kB / 0.9571 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004294/0.7818, allocations: 224.2 kB / 0.9574 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001145/0.7819, allocations: 59.75 kB / 0.9574 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.7821, allocations: 70.8 kB / 0.9575 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.047e-05/0.7822, allocations: 6.344 kB / 0.9575 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002054/0.7824, allocations: 103.9 kB / 0.9576 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.578e-05/0.7825, allocations: 45.86 kB / 0.9576 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.551e-05/0.7825, allocations: 54.86 kB / 0.9577 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002681/0.7828, allocations: 215 kB / 0.9579 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.7828, allocations: 0 / 0.9579 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.423e-06/0.7828, allocations: 0 / 0.9579 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.7828, allocations: 0.9688 kB / 0.9579 GB, free: 4.789 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006354/0.7835, allocations: 444.1 kB / 0.9583 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.7835, allocations: 10 kB / 0.9583 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005688/0.7841, allocations: 69.89 kB / 0.9584 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00026/0.7844, allocations: 225 kB / 0.9586 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.7844, allocations: 17.7 kB / 0.9586 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.084e-05/0.7844, allocations: 12.75 kB / 0.9586 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004261/0.7849, allocations: 268.4 kB / 0.9589 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.7849, allocations: 5.406 kB / 0.9589 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/0.7849, allocations: 13.36 kB / 0.9589 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.725e-05/0.785, allocations: 22.36 kB / 0.9589 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003321/0.7853, allocations: 204.5 kB / 0.9591 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001506/0.7868, allocations: 1.572 MB / 0.9607 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003461/0.7872, allocations: 321.4 kB / 0.961 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.7e-05/0.7872, allocations: 1.375 kB / 0.961 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.13e-05/0.7872, allocations: 39.88 kB / 0.961 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.523e-06/0.7872, allocations: 0 / 0.961 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0005627/0.7878, allocations: 238.4 kB / 0.9612 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.988e-05/0.7879, allocations: 82.14 kB / 0.9613 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001804/0.788, allocations: 204 kB / 0.9615 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.7881, allocations: 29.64 kB / 0.9615 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.295e-05/0.7882, allocations: 154 kB / 0.9617 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.956e-05/0.7882, allocations: 44.53 kB / 0.9617 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.907e-06/0.7882, allocations: 5 kB / 0.9617 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.126e-05/0.7883, allocations: 326.9 kB / 0.962 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000104/0.7884, allocations: 65.73 kB / 0.9621 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001538/0.7886, allocations: 159.5 kB / 0.9623 GB, free: 0.75 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001484/0.7887, allocations: 94.11 kB / 0.9623 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.7887, allocations: 1 kB / 0.9623 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003899/0.7891, allocations: 258.9 kB / 0.9626 GB, free: 0.5586 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003919/0.7895, allocations: 1.137 MB / 0.9637 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.7895, allocations: 2.969 kB / 0.9637 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.7896, allocations: 4.75 kB / 0.9637 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002429/0.7898, allocations: 54.2 kB / 0.9638 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.7898, allocations: 4.047 kB / 0.9638 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.79, allocations: 15.52 kB / 0.9638 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.605e-05/0.79, allocations: 17.48 kB / 0.9638 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/0.79, allocations: 9.031 kB / 0.9638 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000329/0.7904, allocations: 198.7 kB / 0.964 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.7904, allocations: 6.984 kB / 0.964 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.483e-06/0.7904, allocations: 4 kB / 0.964 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001717/0.7906, allocations: 45.08 kB / 0.964 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.7906, allocations: 12.02 kB / 0.9641 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.7907, allocations: 13.16 kB / 0.9641 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/0.7907, allocations: 13.22 kB / 0.9641 GB, free: 15.18 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (25): * Single equations (assignments): 25 * 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 0.0001731/0.7909, allocations: 223.3 kB / 0.9643 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.842e-05/0.791, allocations: 14.48 kB / 0.9643 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002696/0.7913, allocations: 146.6 kB / 0.9645 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.7913, allocations: 4.938 kB / 0.9645 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.7913, allocations: 0.9375 kB / 0.9645 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.7913, allocations: 5.156 kB / 0.9645 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.7923, allocations: 0.7176 MB / 0.9652 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.7923, allocations: 3.562 kB / 0.9652 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001529/0.7925, allocations: 26.33 kB / 0.9652 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/0.7925, allocations: 3.562 kB / 0.9652 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.639e-05/0.7925, allocations: 4.25 kB / 0.9652 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.65e-06/0.7926, allocations: 2.344 kB / 0.9652 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.7926, allocations: 3.594 kB / 0.9652 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004613/0.793, allocations: 0.4913 MB / 0.9657 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.7931, allocations: 108.8 kB / 0.9658 GB, free: 13.56 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.126e-05/0.7932, allocations: 3.562 kB / 0.9658 GB, free: 13.56 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.7934, allocations: 13.52 kB / 0.9658 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.995e-05/0.7934, allocations: 13.83 kB / 0.9658 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.7934, allocations: 5.688 kB / 0.9658 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001523/0.7936, allocations: 146.5 kB / 0.966 GB, free: 13.44 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7936, allocations: 7.938 kB / 0.966 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005368/0.7941, allocations: 67.66 kB / 0.966 GB, free: 13.42 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (11): * Single equations (assignments): 11 * 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.0001813/0.7943, allocations: 115.8 kB / 0.9661 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004362/0.7947, allocations: 258.9 kB / 0.9664 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.7948, allocations: 3.938 kB / 0.9664 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.456e-05/0.7949, allocations: 60.84 kB / 0.9665 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003605/0.7952, allocations: 29.08 kB / 0.9665 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009037/0.7961, allocations: 0.4919 MB / 0.967 GB, free: 12.75 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005276/0.7967, allocations: 0.7483 MB / 0.9677 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002401/0.7969, allocations: 70.62 kB / 0.9678 GB, free: 11.99 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.689e-05/0.797, allocations: 15.72 kB / 0.9678 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of SimCode: time 4.71e-07/0.797, allocations: 1.125 kB / 0.9678 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of Templates: time 0.005932/0.803, allocations: 1.621 MB / 0.9694 GB, free: 11.18 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sources_Examples_FixedVoltageSource.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches