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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001795/0.001795, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00247/0.002469, allocations: 195.7 kB / 16.14 MB, free: 6.711 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.487/1.487, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.605/2.605, allocations: 390.2 MB / 0.6642 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001547, allocations: 72.02 kB / 0.8118 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7951/0.7967, allocations: 140.3 MB / 0.9489 GB, free: 9.32 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.00495/0.8017, allocations: 3.268 MB / 0.9521 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00275/0.8045, allocations: 1.361 MB / 0.9534 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000209/0.8047, allocations: 3.062 kB / 0.9534 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001132/0.8059, allocations: 324.6 kB / 0.9537 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004406/0.8064, allocations: 142.6 kB / 0.9539 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004619/0.8068, allocations: 136.5 kB / 0.954 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005773/0.8074, allocations: 454.8 kB / 0.9544 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004352/0.8079, allocations: 170.2 kB / 0.9546 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002398/0.8081, allocations: 120.6 kB / 0.9547 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003371/0.8085, allocations: 157.7 kB / 0.9549 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.506e-05/0.8085, allocations: 14.09 kB / 0.9549 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000426/0.809, allocations: 211.5 kB / 0.9551 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.8091, allocations: 79.97 kB / 0.9552 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001549/0.8092, allocations: 112.2 kB / 0.9553 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004689/0.8097, allocations: 366 kB / 0.9556 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.8097, allocations: 0 / 0.9556 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.763e-06/0.8098, allocations: 3.938 kB / 0.9556 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.558e-06/0.8098, allocations: 1.844 kB / 0.9556 GB, free: 4.332 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.0009631/0.8107, allocations: 0.5444 MB / 0.9561 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.8108, allocations: 9.375 kB / 0.9562 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006054/0.8114, allocations: 80.95 kB / 0.9562 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002895/0.8117, allocations: 250.7 kB / 0.9565 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.8117, allocations: 12 kB / 0.9565 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.69e-05/0.8118, allocations: 26.7 kB / 0.9565 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005609/0.8123, allocations: 317.7 kB / 0.9568 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.8124, allocations: 1.375 kB / 0.9568 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.893e-05/0.8124, allocations: 6.75 kB / 0.9568 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.653e-05/0.8124, allocations: 20.8 kB / 0.9568 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000385/0.8128, allocations: 215.2 kB / 0.957 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001458/0.8143, allocations: 1.501 MB / 0.9585 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004883/0.8148, allocations: 199.2 kB / 0.9587 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.8149, allocations: 45.33 kB / 0.9587 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.815, allocations: 1.031 kB / 0.9587 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.818e-05/0.815, allocations: 40.59 kB / 0.9588 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.223e-06/0.815, allocations: 0 / 0.9588 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.000662/0.8157, allocations: 256.9 kB / 0.959 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.966e-05/0.8157, allocations: 56.22 kB / 0.9591 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.8159, allocations: 204.3 kB / 0.9593 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.539e-05/0.816, allocations: 26.7 kB / 0.9593 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.8161, allocations: 184.3 kB / 0.9595 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.553e-05/0.8161, allocations: 28.11 kB / 0.9595 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.742e-05/0.8162, allocations: 42.95 kB / 0.9595 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.035e-05/0.8163, allocations: 330.1 kB / 0.9599 GB, free: 472 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.8164, allocations: 43.88 kB / 0.9599 GB, free: 452 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.8166, allocations: 111.2 kB / 0.96 GB, free: 340 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002392/0.8168, allocations: 164.2 kB / 0.9602 GB, free: 200 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.8168, allocations: 1.031 kB / 0.9602 GB, free: 200 kB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003685/0.8172, allocations: 219.8 kB / 0.9604 GB, free: 64 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.8172, allocations: 6.125 kB / 0.9604 GB, free: 64 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.8172, allocations: 2.438 kB / 0.9604 GB, free: 64 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001727/0.8174, allocations: 22.84 kB / 0.9604 GB, free: 52 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.8176, allocations: 48.12 kB / 0.9605 GB, free: 28 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/0.8187, allocations: 1.32 MB / 0.9617 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001453/0.8189, allocations: 22.88 kB / 0.9618 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.95e-05/0.8189, allocations: 6.562 kB / 0.9618 GB, free: 14.66 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.0001542/0.8191, allocations: 157 kB / 0.9619 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.514e-05/0.8191, allocations: 19.11 kB / 0.9619 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.629e-05/0.8191, allocations: 18 kB / 0.962 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.8192, allocations: 0.9375 kB / 0.962 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.8192, allocations: 1.094 kB / 0.962 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.8192, allocations: 0 / 0.962 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006669/0.8198, allocations: 497.3 kB / 0.9624 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.8199, allocations: 5.25 kB / 0.9624 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.547e-05/0.8199, allocations: 8.656 kB / 0.9624 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.501e-05/0.82, allocations: 23.28 kB / 0.9625 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.82, allocations: 1.062 kB / 0.9625 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001101/0.8212, allocations: 1.325 MB / 0.9638 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.8212, allocations: 1.25 kB / 0.9638 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003998/0.8216, allocations: 233.5 kB / 0.964 GB, free: 12.47 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/0.8217, allocations: 103.8 kB / 0.9641 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.377e-05/0.8217, allocations: 5.281 kB / 0.9641 GB, free: 12.35 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.8219, allocations: 3.438 kB / 0.9641 GB, free: 12.35 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.505e-05/0.822, allocations: 15.25 kB / 0.9641 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.002e-05/0.822, allocations: 2.25 kB / 0.9641 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002008/0.8222, allocations: 146 kB / 0.9642 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8222, allocations: 4 kB / 0.9643 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004851/0.8227, allocations: 59.16 kB / 0.9643 GB, free: 12.21 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.0002247/0.8229, allocations: 97.52 kB / 0.9644 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006913/0.8236, allocations: 228 kB / 0.9646 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.8236, allocations: 0.5625 kB / 0.9646 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002889/0.8239, allocations: 165.2 kB / 0.9648 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000516/0.8245, allocations: 36.97 kB / 0.9648 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.8256, allocations: 492.3 kB / 0.9653 GB, free: 11.44 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004903/0.8261, allocations: 0.7525 MB / 0.966 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001347/0.8262, allocations: 26.66 kB / 0.966 GB, free: 10.69 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.627e-05/0.8263, allocations: 15.19 kB / 0.9661 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of SimCode: time 3.7e-07/0.8263, allocations: 0 / 0.9661 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of Templates: time 0.009316/0.8356, allocations: 1.843 MB / 0.9679 GB, free: 9.777 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/jenkins/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