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.001276/0.001276, allocations: 108 kB / 15.61 MB, free: 152 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.001345/0.001345, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.422/1.422, allocations: 222.9 MB / 240.2 MB, free: 4.375 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.441/2.441, allocations: 390.2 MB / 0.6647 GB, free: 476 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 55.91 kB / 0.8125 GB, free: 14.49 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8881/0.8896, allocations: 140.4 MB / 0.9496 GB, free: 9.379 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.005512/0.8952, allocations: 3.219 MB / 0.9527 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002292/0.8975, allocations: 1.362 MB / 0.954 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001692/0.8977, allocations: 3.719 kB / 0.954 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001032/0.8988, allocations: 348.6 kB / 0.9544 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003513/0.8991, allocations: 143.7 kB / 0.9545 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003846/0.8995, allocations: 149.3 kB / 0.9547 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004228/0.9, allocations: 334.2 kB / 0.955 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005294/0.9005, allocations: 257.3 kB / 0.9552 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002203/0.9007, allocations: 135.8 kB / 0.9554 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003056/0.901, allocations: 157.2 kB / 0.9555 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.191e-05/0.9011, allocations: 19.88 kB / 0.9555 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003506/0.9014, allocations: 175.3 kB / 0.9557 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.9016, allocations: 80.89 kB / 0.9558 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001357/0.9017, allocations: 120 kB / 0.9559 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004495/0.9022, allocations: 349 kB / 0.9562 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.9022, allocations: 1.375 kB / 0.9562 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.336e-06/0.9022, allocations: 0 / 0.9562 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.825e-06/0.9022, allocations: 0 / 0.9562 GB, free: 4.402 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.0009665/0.9032, allocations: 0.543 MB / 0.9567 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.9032, allocations: 14.09 kB / 0.9568 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006156/0.9038, allocations: 80.8 kB / 0.9568 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002727/0.9041, allocations: 247 kB / 0.9571 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.9042, allocations: 11.81 kB / 0.9571 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.95e-05/0.9042, allocations: 17.69 kB / 0.9571 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005425/0.9048, allocations: 327.6 kB / 0.9574 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.9048, allocations: 0 / 0.9574 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.3e-05/0.9048, allocations: 11.73 kB / 0.9574 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.747e-05/0.9049, allocations: 17.19 kB / 0.9574 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004169/0.9053, allocations: 210 kB / 0.9576 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001431/0.9067, allocations: 1.498 MB / 0.9591 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004551/0.9072, allocations: 205.8 kB / 0.9593 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.9073, allocations: 42.72 kB / 0.9593 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.9074, allocations: 0 / 0.9593 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.937e-05/0.9074, allocations: 36.75 kB / 0.9594 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.343e-06/0.9074, allocations: 0 / 0.9594 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0006532/0.9081, allocations: 267.8 kB / 0.9596 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.587e-05/0.9081, allocations: 52.5 kB / 0.9597 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002385/0.9084, allocations: 205.1 kB / 0.9599 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.9084, allocations: 30.77 kB / 0.9599 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.9085, allocations: 176.7 kB / 0.9601 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.254e-05/0.9085, allocations: 27.92 kB / 0.9601 GB, free: 0.8984 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.518e-05/0.9086, allocations: 38.16 kB / 0.9601 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.9087, allocations: 329.9 kB / 0.9604 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.9089, allocations: 43.94 kB / 0.9605 GB, free: 0.5195 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001594/0.909, allocations: 119.2 kB / 0.9606 GB, free: 412 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002985/0.9093, allocations: 160.5 kB / 0.9608 GB, free: 276 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.9093, allocations: 5.047 kB / 0.9608 GB, free: 272 kB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004333/0.9098, allocations: 211.9 kB / 0.961 GB, free: 144 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.047e-05/0.9098, allocations: 8.219 kB / 0.961 GB, free: 144 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.9098, allocations: 2.094 kB / 0.961 GB, free: 144 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002431/0.9101, allocations: 26.06 kB / 0.961 GB, free: 128 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.9103, allocations: 41.39 kB / 0.961 GB, free: 112 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001519/0.9118, allocations: 1.425 MB / 0.9624 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001463/0.912, allocations: 19.41 kB / 0.9624 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.387e-05/0.912, allocations: 9.906 kB / 0.9625 GB, free: 14.63 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.0001982/0.9122, allocations: 156.2 kB / 0.9626 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.317e-05/0.9122, allocations: 16.62 kB / 0.9626 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.098e-05/0.9123, allocations: 20.75 kB / 0.9626 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.9123, allocations: 1.719 kB / 0.9626 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.9123, allocations: 4.844 kB / 0.9626 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.9123, allocations: 3.984 kB / 0.9627 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007975/0.9131, allocations: 481.3 kB / 0.9631 GB, free: 14.03 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.9132, allocations: 1.031 kB / 0.9631 GB, free: 14.03 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.403e-05/0.9132, allocations: 12.25 kB / 0.9631 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.317e-05/0.9133, allocations: 27.7 kB / 0.9632 GB, free: 14 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.9134, allocations: 9.188 kB / 0.9632 GB, free: 14 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001277/0.9147, allocations: 1.427 MB / 0.9646 GB, free: 12.53 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.9147, allocations: 0 / 0.9646 GB, free: 12.53 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004155/0.9151, allocations: 234.3 kB / 0.9648 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.591e-05/0.9152, allocations: 92.42 kB / 0.9649 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.356e-05/0.9152, allocations: 8.141 kB / 0.9649 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.9154, allocations: 13.09 kB / 0.9649 GB, free: 12.22 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.415e-05/0.9155, allocations: 10.55 kB / 0.9649 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.9155, allocations: 2.594 kB / 0.9649 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001759/0.9157, allocations: 145.7 kB / 0.965 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of sort global known variables: time 9e-08/0.9157, allocations: 0 / 0.965 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004341/0.9161, allocations: 67.5 kB / 0.9651 GB, free: 12.09 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.0001895/0.9163, allocations: 104.5 kB / 0.9652 GB, free: 11.99 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006253/0.9169, allocations: 230.8 kB / 0.9654 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.9169, allocations: 0 / 0.9654 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000276/0.9172, allocations: 161 kB / 0.9656 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004739/0.9177, allocations: 49.27 kB / 0.9656 GB, free: 11.66 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009504/0.9187, allocations: 395.6 kB / 0.966 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000442/0.9191, allocations: 0.7598 MB / 0.9667 GB, free: 10.65 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001218/0.9193, allocations: 31.3 kB / 0.9668 GB, free: 10.63 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.499e-05/0.9193, allocations: 15.41 kB / 0.9668 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of SimCode: time 2.21e-07/0.9193, allocations: 0 / 0.9668 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of Templates: time 0.005956/0.9253, allocations: 1.923 MB / 0.9687 GB, free: 9.68 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