Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 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.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V|sen.I",fileNamePrefix="Buildings_latest_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_latest_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.001215/0.001215, allocations: 100.2 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.001446/0.001446, 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.364/1.364, allocations: 223.2 MB / 239.9 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.689/2.689, allocations: 436.5 MB / 0.7104 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003653/0.0003654, allocations: 8 kB / 0.8708 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8822/0.8826, allocations: 153.7 MB / 1.021 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.003749/0.8864, allocations: 2.727 MB / 1.023 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001899/0.8884, allocations: 1.255 MB / 1.025 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000124/0.8885, allocations: 7.938 kB / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000161/0.8887, allocations: 39.7 kB / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003245/0.889, allocations: 111.7 kB / 1.025 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002991/0.8893, allocations: 107.7 kB / 1.025 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002946/0.8896, allocations: 191.5 kB / 1.025 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003835/0.89, allocations: 223.3 kB / 1.025 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001565/0.8902, allocations: 91.69 kB / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002451/0.8904, allocations: 99.59 kB / 1.026 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.114e-05/0.8905, allocations: 12 kB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000181/0.8907, allocations: 83.81 kB / 1.026 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.359e-05/0.8908, allocations: 63.81 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.072e-05/0.8908, allocations: 69.58 kB / 1.026 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002849/0.8911, allocations: 257.3 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.8911, allocations: 0 / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.236e-06/0.8911, allocations: 4 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.691e-06/0.8911, allocations: 3.938 kB / 1.026 GB, free: 11.73 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008932/0.892, allocations: 0.5028 MB / 1.026 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.8921, allocations: 11.98 kB / 1.027 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006026/0.8927, allocations: 91.64 kB / 1.027 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003099/0.893, allocations: 244.7 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.563e-05/0.8931, allocations: 24.41 kB / 1.027 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.172e-05/0.8931, allocations: 23.98 kB / 1.027 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004755/0.8936, allocations: 304.4 kB / 1.027 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.8936, allocations: 3.938 kB / 1.027 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.986e-05/0.8936, allocations: 12 kB / 1.027 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.373e-05/0.8937, allocations: 16.42 kB / 1.027 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003711/0.8941, allocations: 213.6 kB / 1.027 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001554/0.8956, allocations: 1.505 MB / 1.029 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000411/0.896, allocations: 203.6 kB / 1.029 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.8961, allocations: 0 / 1.029 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.8961, allocations: 30.56 kB / 1.029 GB, free: 8.258 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.8961, allocations: 0 / 1.029 GB, free: 8.258 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.000564/0.8967, allocations: 275.5 kB / 1.029 GB, free: 7.961 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.8967, allocations: 55.34 kB / 1.029 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001994/0.8969, allocations: 199.8 kB / 1.03 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.897, allocations: 29.7 kB / 1.03 GB, free: 7.652 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.8971, allocations: 183.6 kB / 1.03 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.265e-05/0.8971, allocations: 23.66 kB / 1.03 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.394e-06/0.8971, allocations: 7.938 kB / 1.03 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.8972, allocations: 326.8 kB / 1.03 GB, free: 7.109 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.173e-05/0.8973, allocations: 43.97 kB / 1.03 GB, free: 7.066 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.8975, allocations: 116.5 kB / 1.03 GB, free: 6.922 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001109/0.8976, allocations: 63.92 kB / 1.03 GB, free: 6.859 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.8976, allocations: 4 kB / 1.03 GB, free: 6.855 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003579/0.898, allocations: 210.3 kB / 1.031 GB, free: 6.641 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.898, allocations: 11.98 kB / 1.031 GB, free: 6.629 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.898, allocations: 4 kB / 1.031 GB, free: 6.625 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001581/0.8982, allocations: 28.8 kB / 1.031 GB, free: 6.594 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.8983, allocations: 36.02 kB / 1.031 GB, free: 6.559 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009752/0.8993, allocations: 1.334 MB / 1.032 GB, free: 5.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001295/0.8994, allocations: 19.83 kB / 1.032 GB, free: 5.07 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.8995, allocations: 12 kB / 1.032 GB, free: 5.059 MB / 0.7794 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.000133/0.8996, allocations: 146 kB / 1.032 GB, free: 4.906 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.598e-05/0.8996, allocations: 15.81 kB / 1.032 GB, free: 4.891 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.22e-05/0.8997, allocations: 25.34 kB / 1.032 GB, free: 4.871 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.8997, allocations: 0 / 1.032 GB, free: 4.871 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.8997, allocations: 0 / 1.032 GB, free: 4.871 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.8997, allocations: 4 kB / 1.032 GB, free: 4.867 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005767/0.9003, allocations: 491.2 kB / 1.033 GB, free: 4.328 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.9003, allocations: 4.062 kB / 1.033 GB, free: 4.324 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.532e-05/0.9004, allocations: 19.92 kB / 1.033 GB, free: 4.305 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.402e-05/0.9004, allocations: 24.84 kB / 1.033 GB, free: 4.277 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.9005, allocations: 0 / 1.033 GB, free: 4.277 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008692/0.9013, allocations: 1.327 MB / 1.034 GB, free: 2.816 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.9013, allocations: 0 / 1.034 GB, free: 2.816 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002982/0.9016, allocations: 240.4 kB / 1.034 GB, free: 2.562 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.316e-05/0.9017, allocations: 100.9 kB / 1.034 GB, free: 2.445 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2e-05/0.9018, allocations: 0 / 1.034 GB, free: 2.445 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001335/0.9019, allocations: 12 kB / 1.034 GB, free: 2.434 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.347e-05/0.902, allocations: 11.92 kB / 1.034 GB, free: 2.422 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.902, allocations: 0 / 1.034 GB, free: 2.422 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001292/0.9021, allocations: 149.5 kB / 1.034 GB, free: 2.277 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9021, allocations: 0 / 1.034 GB, free: 2.277 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003289/0.9024, allocations: 55.84 kB / 1.035 GB, free: 2.223 MB / 0.7794 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.0001313/0.9026, allocations: 107.2 kB / 1.035 GB, free: 2.109 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004512/0.903, allocations: 238.7 kB / 1.035 GB, free: 1.863 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.9031, allocations: 0 / 1.035 GB, free: 1.863 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001942/0.9033, allocations: 163.2 kB / 1.035 GB, free: 1.691 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.9036, allocations: 28.88 kB / 1.035 GB, free: 1.664 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006822/0.9043, allocations: 491.4 kB / 1.035 GB, free: 1.156 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.9046, allocations: 0.7674 MB / 1.036 GB, free: 372 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.99e-05/0.9047, allocations: 25.53 kB / 1.036 GB, free: 348 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.786e-05/0.9048, allocations: 15.44 kB / 1.036 GB, free: 332 kB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.9048, allocations: 0 / 1.036 GB, free: 332 kB / 0.7794 GB Notification: Performance of Templates: time 0.004593/0.9094, allocations: 1.763 MB / 1.038 GB, free: 14.58 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & ./Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches