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.001676/0.001676, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001918/0.001918, allocations: 195.9 kB / 16.79 MB, free: 6.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 222.9 MB / 240.5 MB, free: 4.582 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.426/2.426, allocations: 390.2 MB / 0.6649 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 67.91 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7737/0.7753, allocations: 140.3 MB / 0.9496 GB, free: 9.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.004793/0.7802, allocations: 3.259 MB / 0.9528 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002185/0.7824, allocations: 1.373 MB / 0.9541 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001523/0.7826, allocations: 3.156 kB / 0.9541 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0009413/0.7835, allocations: 322.4 kB / 0.9544 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000327/0.7839, allocations: 136.8 kB / 0.9545 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003902/0.7843, allocations: 133.5 kB / 0.9547 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004787/0.7848, allocations: 458.9 kB / 0.9551 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003426/0.7851, allocations: 170.8 kB / 0.9553 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001885/0.7853, allocations: 119.2 kB / 0.9554 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002886/0.7856, allocations: 158.6 kB / 0.9555 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.878e-05/0.7857, allocations: 13.69 kB / 0.9555 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003404/0.786, allocations: 211.9 kB / 0.9557 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.27e-05/0.7861, allocations: 79.55 kB / 0.9558 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001302/0.7862, allocations: 113 kB / 0.9559 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002898/0.7865, allocations: 279.8 kB / 0.9562 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.7866, allocations: 0 / 0.9562 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.82e-07/0.7866, allocations: 1.344 kB / 0.9562 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.959e-06/0.7866, allocations: 0 / 0.9562 GB, free: 4.184 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.0009139/0.7875, allocations: 0.5457 MB / 0.9567 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.7876, allocations: 7.594 kB / 0.9567 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000599/0.7882, allocations: 81.23 kB / 0.9568 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003179/0.7885, allocations: 243.2 kB / 0.957 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.317e-05/0.7885, allocations: 16.98 kB / 0.9571 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.99e-05/0.7886, allocations: 32.92 kB / 0.9571 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005058/0.7891, allocations: 306.6 kB / 0.9574 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.7891, allocations: 0 / 0.9574 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.926e-05/0.7891, allocations: 11.69 kB / 0.9574 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.144e-05/0.7892, allocations: 20.45 kB / 0.9574 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003668/0.7896, allocations: 215.4 kB / 0.9576 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001364/0.7909, allocations: 1.493 MB / 0.9591 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004116/0.7913, allocations: 202.9 kB / 0.9593 GB, free: 1.41 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.489e-05/0.7915, allocations: 46.55 kB / 0.9593 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.492e-05/0.7915, allocations: 5.344 kB / 0.9593 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.725e-05/0.7915, allocations: 39.83 kB / 0.9594 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.7915, allocations: 0 / 0.9594 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0005561/0.7921, allocations: 256.5 kB / 0.9596 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.524e-05/0.7921, allocations: 56.66 kB / 0.9597 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001939/0.7923, allocations: 208.4 kB / 0.9599 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.7923, allocations: 25.7 kB / 0.9599 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.669e-05/0.7924, allocations: 181.7 kB / 0.9601 GB, free: 0.7031 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.328e-05/0.7924, allocations: 27.98 kB / 0.9601 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.077e-05/0.7925, allocations: 41.88 kB / 0.9601 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.673e-05/0.7926, allocations: 334.8 kB / 0.9604 GB, free: 320 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.7927, allocations: 39.36 kB / 0.9605 GB, free: 304 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.7928, allocations: 115.4 kB / 0.9606 GB, free: 188 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002285/0.7931, allocations: 165 kB / 0.9607 GB, free: 48 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.7931, allocations: 0.8125 kB / 0.9607 GB, free: 48 kB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004011/0.7935, allocations: 215.5 kB / 0.961 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.7935, allocations: 6.438 kB / 0.961 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.7935, allocations: 2.188 kB / 0.961 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001757/0.7937, allocations: 30.84 kB / 0.961 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/0.7938, allocations: 36.27 kB / 0.961 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001053/0.7949, allocations: 1.325 MB / 0.9623 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001454/0.7951, allocations: 26.31 kB / 0.9623 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.7951, allocations: 6.656 kB / 0.9624 GB, free: 14.5 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001462/0.7952, allocations: 151.9 kB / 0.9625 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.776e-05/0.7953, allocations: 15.81 kB / 0.9625 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.528e-05/0.7953, allocations: 22.2 kB / 0.9625 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.7953, allocations: 1.125 kB / 0.9625 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.7954, allocations: 1.094 kB / 0.9625 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.7954, allocations: 4 kB / 0.9625 GB, free: 14.33 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006509/0.796, allocations: 489.5 kB / 0.963 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.796, allocations: 0 / 0.963 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.911e-05/0.7961, allocations: 13.58 kB / 0.963 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.336e-05/0.7962, allocations: 23.34 kB / 0.963 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.7962, allocations: 0 / 0.963 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009629/0.7972, allocations: 1.326 MB / 0.9643 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.7972, allocations: 160 / 0.9643 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003144/0.7975, allocations: 242.1 kB / 0.9646 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.076e-05/0.7976, allocations: 99.45 kB / 0.9647 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.414e-05/0.7977, allocations: 5.109 kB / 0.9647 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.7978, allocations: 7.906 kB / 0.9647 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.395e-05/0.7978, allocations: 11.61 kB / 0.9647 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.7979, allocations: 10.59 kB / 0.9647 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001342/0.798, allocations: 145.6 kB / 0.9648 GB, free: 12.08 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.798, allocations: 0 / 0.9648 GB, free: 12.08 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003587/0.7984, allocations: 59.09 kB / 0.9649 GB, free: 12.07 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00012/0.7985, allocations: 98.39 kB / 0.965 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004595/0.799, allocations: 235.4 kB / 0.9652 GB, free: 11.81 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.799, allocations: 0 / 0.9652 GB, free: 11.81 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002192/0.7992, allocations: 162.1 kB / 0.9654 GB, free: 11.67 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003988/0.7996, allocations: 38.64 kB / 0.9654 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000801/0.8004, allocations: 0.5156 MB / 0.9659 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/0.8008, allocations: 0.7551 MB / 0.9666 GB, free: 10.52 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.789e-05/0.8008, allocations: 21.78 kB / 0.9667 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of SimCode: time 4.71e-07/0.8008, allocations: 0 / 0.9667 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of Templates: time 0.005885/0.8067, allocations: 3.21 MB / 0.9698 GB, free: 8.84 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches