Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.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.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V|sen.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource") translateModel(Buildings.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V|sen.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 99.39 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.001399/0.001399, 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.534/1.534, allocations: 223.2 MB / 239.9 MB, free: 5.438 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.494/2.494, allocations: 390.2 MB / 0.6653 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003988/0.0003989, allocations: 8 kB / 0.8145 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8702/0.8706, allocations: 142.3 MB / 0.9535 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.003571/0.8742, allocations: 2.712 MB / 0.9562 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001838/0.8761, allocations: 1.257 MB / 0.9574 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.8762, allocations: 3.812 kB / 0.9574 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001782/0.8764, allocations: 35.58 kB / 0.9574 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003428/0.8768, allocations: 123.5 kB / 0.9575 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002865/0.8771, allocations: 105.3 kB / 0.9576 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000287/0.8774, allocations: 187.6 kB / 0.9578 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003323/0.8777, allocations: 226.3 kB / 0.958 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.8779, allocations: 102 kB / 0.9581 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002179/0.8781, allocations: 106.1 kB / 0.9582 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.979e-05/0.8781, allocations: 10.59 kB / 0.9582 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001875/0.8783, allocations: 76.17 kB / 0.9583 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.763e-05/0.8784, allocations: 65.94 kB / 0.9584 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.765e-05/0.8785, allocations: 67.58 kB / 0.9584 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002955/0.8788, allocations: 257.3 kB / 0.9587 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.8788, allocations: 0 / 0.9587 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.645e-06/0.8788, allocations: 1.375 kB / 0.9587 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.8788, allocations: 4 kB / 0.9587 GB, free: 4.156 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008138/0.8796, allocations: 0.5029 MB / 0.9592 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/0.8797, allocations: 9.062 kB / 0.9592 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000647/0.8803, allocations: 88.02 kB / 0.9593 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002738/0.8806, allocations: 245 kB / 0.9595 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.8807, allocations: 19.38 kB / 0.9595 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.621e-05/0.8807, allocations: 17 kB / 0.9595 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005313/0.8812, allocations: 308.8 kB / 0.9598 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.8813, allocations: 4.938 kB / 0.9598 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.74e-05/0.8813, allocations: 14.33 kB / 0.9599 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.671e-05/0.8814, allocations: 17.61 kB / 0.9599 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003924/0.8818, allocations: 214 kB / 0.9601 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001423/0.8832, allocations: 1.501 MB / 0.9615 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004569/0.8837, allocations: 207.8 kB / 0.9617 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.8837, allocations: 1.188 kB / 0.9617 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/0.8837, allocations: 36.67 kB / 0.9618 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.213e-06/0.8837, allocations: 0 / 0.9618 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0005831/0.8843, allocations: 269.2 kB / 0.962 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.912e-05/0.8844, allocations: 52.16 kB / 0.9621 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/0.8846, allocations: 203.5 kB / 0.9623 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.8846, allocations: 30.7 kB / 0.9623 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.831e-05/0.8847, allocations: 181 kB / 0.9625 GB, free: 0.7383 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.518e-05/0.8847, allocations: 27.64 kB / 0.9625 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.065e-06/0.8847, allocations: 0.9688 kB / 0.9625 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.49e-05/0.8848, allocations: 326.8 kB / 0.9628 GB, free: 400 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.872e-05/0.8849, allocations: 45.09 kB / 0.9629 GB, free: 380 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.8851, allocations: 119.1 kB / 0.963 GB, free: 260 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001237/0.8852, allocations: 64.81 kB / 0.963 GB, free: 228 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.8852, allocations: 1.125 kB / 0.963 GB, free: 228 kB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003796/0.8856, allocations: 214.8 kB / 0.9632 GB, free: 100 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.8856, allocations: 5.781 kB / 0.9633 GB, free: 100 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.8856, allocations: 7.656 kB / 0.9633 GB, free: 96 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001878/0.8858, allocations: 29.95 kB / 0.9633 GB, free: 76 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.886, allocations: 33.86 kB / 0.9633 GB, free: 68 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001242/0.8872, allocations: 1.336 MB / 0.9646 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.8874, allocations: 15.66 kB / 0.9646 GB, free: 14.69 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.8874, allocations: 14.14 kB / 0.9647 GB, free: 14.68 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (18): * Single equations (assignments): 17 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000178/0.8876, allocations: 150.8 kB / 0.9648 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.474e-05/0.8877, allocations: 20.34 kB / 0.9648 GB, free: 14.53 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.158e-05/0.8877, allocations: 17.41 kB / 0.9648 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.8877, allocations: 0.9688 kB / 0.9648 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.8877, allocations: 1.031 kB / 0.9648 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.8877, allocations: 3.984 kB / 0.9648 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000706/0.8884, allocations: 492.3 kB / 0.9653 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.8885, allocations: 5.188 kB / 0.9653 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.661e-05/0.8885, allocations: 9.188 kB / 0.9653 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.431e-05/0.8886, allocations: 27.7 kB / 0.9654 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.923e-05/0.8887, allocations: 5.281 kB / 0.9654 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001099/0.8898, allocations: 1.326 MB / 0.9667 GB, free: 12.69 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.8898, allocations: 0 / 0.9667 GB, free: 12.69 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003489/0.8901, allocations: 245.8 kB / 0.9669 GB, free: 12.49 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.876e-05/0.8902, allocations: 108.5 kB / 0.967 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.067e-05/0.8903, allocations: 0 / 0.967 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.8904, allocations: 13.89 kB / 0.967 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.583e-05/0.8905, allocations: 3.906 kB / 0.967 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.256e-06/0.8905, allocations: 1.969 kB / 0.967 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001548/0.8906, allocations: 148.4 kB / 0.9671 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8906, allocations: 0 / 0.9671 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003901/0.891, allocations: 56.28 kB / 0.9672 GB, free: 12.24 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (7): * Single equations (assignments): 6 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001402/0.8912, allocations: 102.8 kB / 0.9673 GB, free: 12.15 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004841/0.8917, allocations: 240.4 kB / 0.9675 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.8917, allocations: 1 kB / 0.9675 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002355/0.8919, allocations: 162.8 kB / 0.9677 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.8923, allocations: 34.5 kB / 0.9677 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007348/0.893, allocations: 486.9 kB / 0.9682 GB, free: 11.46 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003942/0.8934, allocations: 0.7614 MB / 0.9689 GB, free: 10.72 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001131/0.8935, allocations: 27.75 kB / 0.969 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.001e-05/0.8936, allocations: 14.25 kB / 0.969 GB, free: 10.7 MB / 0.7325 GB Notification: Performance of SimCode: time 3.81e-07/0.8936, allocations: 1.375 kB / 0.969 GB, free: 10.7 MB / 0.7325 GB Notification: Performance of Templates: time 0.005555/0.8991, allocations: 1.769 MB / 0.9707 GB, free: 9.828 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & ./Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches