Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 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.Sources.Examples.FixedVoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|sen.V|sen.theta",fileNamePrefix="Buildings_latest_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_latest_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.0009872/0.000987, 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.0008986/0.0008986, 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.457/1.457, 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.757/2.757, allocations: 436.5 MB / 0.7104 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003487/0.0003487, allocations: 12 kB / 0.8708 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8894/0.8897, allocations: 153.7 MB / 1.021 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource): time 0.002975/0.8927, allocations: 2.041 MB / 1.023 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002304/0.8951, allocations: 1.298 MB / 1.024 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.8952, allocations: 4 kB / 1.024 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001817/0.8954, allocations: 19.84 kB / 1.024 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003879/0.8958, allocations: 87.67 kB / 1.024 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004728/0.8963, allocations: 143.6 kB / 1.024 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002256/0.8965, allocations: 131.7 kB / 1.024 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005668/0.8971, allocations: 218.1 kB / 1.025 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001462/0.8973, allocations: 59.77 kB / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002243/0.8975, allocations: 63.75 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.668e-05/0.8976, allocations: 8 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002326/0.8978, allocations: 107.8 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.812e-05/0.8979, allocations: 47.88 kB / 1.025 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.321e-05/0.8979, allocations: 57.64 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002774/0.8982, allocations: 217.3 kB / 1.025 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.8982, allocations: 0 / 1.025 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.204e-06/0.8982, allocations: 0 / 1.025 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.8982, allocations: 0 / 1.025 GB, free: 12.61 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006961/0.8989, allocations: 440.9 kB / 1.026 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.899, allocations: 11.98 kB / 1.026 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005524/0.8996, allocations: 71.73 kB / 1.026 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002694/0.8998, allocations: 218.8 kB / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.8999, allocations: 20.23 kB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.743e-05/0.8999, allocations: 12 kB / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004271/0.9003, allocations: 279.6 kB / 1.026 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.9004, allocations: 0 / 1.026 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.864e-05/0.9004, allocations: 12 kB / 1.026 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-05/0.9005, allocations: 16.22 kB / 1.026 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003621/0.9008, allocations: 204.5 kB / 1.026 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002329/0.9032, allocations: 1.584 MB / 1.028 GB, free: 9.504 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000499/0.9037, allocations: 323.2 kB / 1.028 GB, free: 9.133 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.9037, allocations: 0 / 1.028 GB, free: 9.133 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/0.9038, allocations: 34.56 kB / 1.028 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 1.173e-06/0.9038, allocations: 0 / 1.028 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.000803/0.9046, allocations: 256.7 kB / 1.029 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.084e-05/0.9047, allocations: 81.11 kB / 1.029 GB, free: 8.734 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002772/0.905, allocations: 199.4 kB / 1.029 GB, free: 8.531 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.905, allocations: 25.7 kB / 1.029 GB, free: 8.5 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.9052, allocations: 155.6 kB / 1.029 GB, free: 8.344 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.845e-05/0.9053, allocations: 39.64 kB / 1.029 GB, free: 8.305 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.04e-05/0.9053, allocations: 4 kB / 1.029 GB, free: 8.301 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002231/0.9055, allocations: 326.8 kB / 1.029 GB, free: 7.973 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/0.9056, allocations: 67.95 kB / 1.029 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002288/0.9059, allocations: 147.1 kB / 1.03 GB, free: 7.723 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.9061, allocations: 95.89 kB / 1.03 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.9061, allocations: 0 / 1.03 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004601/0.9065, allocations: 257.1 kB / 1.03 GB, free: 7.371 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008117/0.9074, allocations: 1.142 MB / 1.031 GB, free: 6.141 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.9074, allocations: 0 / 1.031 GB, free: 6.141 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.565e-05/0.9074, allocations: 7.953 kB / 1.031 GB, free: 6.133 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002528/0.9077, allocations: 51.91 kB / 1.031 GB, free: 6.082 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.536e-05/0.9077, allocations: 7.984 kB / 1.031 GB, free: 6.074 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001527/0.9079, allocations: 15.91 kB / 1.031 GB, free: 6.059 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.829e-05/0.9079, allocations: 11.98 kB / 1.031 GB, free: 6.047 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.04e-05/0.9079, allocations: 8 kB / 1.031 GB, free: 6.039 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003196/0.9082, allocations: 195.5 kB / 1.031 GB, free: 5.848 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.9082, allocations: 4.047 kB / 1.031 GB, free: 5.844 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.9083, allocations: 11.97 kB / 1.031 GB, free: 5.832 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.9084, allocations: 52.42 kB / 1.031 GB, free: 5.781 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.9085, allocations: 11.98 kB / 1.031 GB, free: 5.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.9086, allocations: 4 kB / 1.031 GB, free: 5.766 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/0.9086, allocations: 12 kB / 1.031 GB, free: 5.754 MB / 0.7794 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.0002262/0.9088, allocations: 224.9 kB / 1.032 GB, free: 5.523 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.607e-05/0.9089, allocations: 15.81 kB / 1.032 GB, free: 5.508 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003123/0.9092, allocations: 150.9 kB / 1.032 GB, free: 5.355 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.9092, allocations: 3.938 kB / 1.032 GB, free: 5.352 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.9093, allocations: 0 / 1.032 GB, free: 5.352 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.9093, allocations: 4 kB / 1.032 GB, free: 5.348 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.9103, allocations: 0.716 MB / 1.032 GB, free: 4.547 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.9103, allocations: 4 kB / 1.032 GB, free: 4.543 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.76e-05/0.9104, allocations: 23.92 kB / 1.032 GB, free: 4.52 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.9104, allocations: 4 kB / 1.032 GB, free: 4.516 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.9104, allocations: 7.953 kB / 1.033 GB, free: 4.508 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.9105, allocations: 4 kB / 1.033 GB, free: 4.504 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.9105, allocations: 4 kB / 1.033 GB, free: 4.5 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004545/0.9109, allocations: 0.4916 MB / 1.033 GB, free: 3.902 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.911, allocations: 108.8 kB / 1.033 GB, free: 3.777 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.4e-05/0.9111, allocations: 4 kB / 1.033 GB, free: 3.773 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001676/0.9113, allocations: 11.98 kB / 1.033 GB, free: 3.762 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/0.9113, allocations: 15.88 kB / 1.033 GB, free: 3.746 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.9113, allocations: 8 kB / 1.033 GB, free: 3.738 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001506/0.9115, allocations: 145.1 kB / 1.033 GB, free: 3.598 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9115, allocations: 8 kB / 1.033 GB, free: 3.59 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005565/0.9121, allocations: 64 kB / 1.033 GB, free: 3.527 MB / 0.7794 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.0002413/0.9123, allocations: 103.2 kB / 1.033 GB, free: 3.414 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005105/0.9128, allocations: 268.9 kB / 1.034 GB, free: 3.152 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.9128, allocations: 0 / 1.034 GB, free: 3.152 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.007e-05/0.9129, allocations: 55.91 kB / 1.034 GB, free: 3.098 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004369/0.9134, allocations: 28.11 kB / 1.034 GB, free: 3.07 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.9146, allocations: 0.4944 MB / 1.034 GB, free: 2.52 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005587/0.9152, allocations: 0.744 MB / 1.035 GB, free: 1.75 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.000219/0.9154, allocations: 77.45 kB / 1.035 GB, free: 1.676 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.476e-05/0.9155, allocations: 15.44 kB / 1.035 GB, free: 1.66 MB / 0.7794 GB Notification: Performance of SimCode: time 2.01e-07/0.9155, allocations: 0 / 1.035 GB, free: 1.66 MB / 0.7794 GB Notification: Performance of Templates: time 0.004976/0.9205, allocations: 1.638 MB / 1.037 GB, free: 36 kB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sources_Examples_FixedVoltageSource.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches