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.001177/0.001177, allocations: 103.5 kB / 16.35 MB, free: 6.289 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.001169/0.001169, allocations: 193.4 kB / 17.29 MB, free: 5.863 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.414/1.414, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.454/2.454, allocations: 442.5 MB / 0.7165 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 63.97 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3978/0.3992, allocations: 153 MB / 1.027 GB, free: 2.07 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.005096/0.4043, allocations: 3.219 MB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002295/0.4066, allocations: 1.383 MB / 1.031 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000166/0.4068, allocations: 4 kB / 1.031 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001122/0.408, allocations: 330.6 kB / 1.032 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003896/0.4084, allocations: 151.2 kB / 1.032 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003914/0.4088, allocations: 151.6 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003822/0.4092, allocations: 334.8 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004677/0.4096, allocations: 235.7 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001999/0.4098, allocations: 147.5 kB / 1.032 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002986/0.4101, allocations: 151.5 kB / 1.033 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.495e-05/0.4102, allocations: 20 kB / 1.033 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002927/0.4105, allocations: 167.6 kB / 1.033 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.46e-05/0.4106, allocations: 83.8 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.4107, allocations: 115.4 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004295/0.4112, allocations: 366.8 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.4112, allocations: 3.984 kB / 1.033 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.194e-06/0.4112, allocations: 0 / 1.033 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.011e-06/0.4112, allocations: 0 / 1.033 GB, free: 11.22 MB / 0.8106 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.0009346/0.4121, allocations: 0.5341 MB / 1.034 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.4122, allocations: 12.03 kB / 1.034 GB, free: 10.63 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005736/0.4128, allocations: 84.58 kB / 1.034 GB, free: 10.55 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003539/0.4131, allocations: 251.8 kB / 1.034 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.468e-05/0.4132, allocations: 20.75 kB / 1.034 GB, free: 10.24 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.359e-05/0.4132, allocations: 20.38 kB / 1.034 GB, free: 10.22 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004833/0.4137, allocations: 316.6 kB / 1.035 GB, free: 9.891 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.4137, allocations: 0 / 1.035 GB, free: 9.891 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.084e-05/0.4138, allocations: 12 kB / 1.035 GB, free: 9.879 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.388e-05/0.4138, allocations: 24.31 kB / 1.035 GB, free: 9.855 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003587/0.4142, allocations: 213.5 kB / 1.035 GB, free: 9.641 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001595/0.4158, allocations: 1.482 MB / 1.036 GB, free: 7.992 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004387/0.4162, allocations: 207.6 kB / 1.036 GB, free: 7.762 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.4163, allocations: 48.83 kB / 1.036 GB, free: 7.711 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.4164, allocations: 4 kB / 1.036 GB, free: 7.707 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/0.4164, allocations: 34.5 kB / 1.037 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.292e-06/0.4164, allocations: 0 / 1.037 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0005739/0.417, allocations: 259.4 kB / 1.037 GB, free: 7.383 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/0.4171, allocations: 59.41 kB / 1.037 GB, free: 7.312 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002037/0.4173, allocations: 207.7 kB / 1.037 GB, free: 7.102 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.4173, allocations: 25.7 kB / 1.037 GB, free: 7.07 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.4174, allocations: 175.7 kB / 1.037 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.632e-05/0.4174, allocations: 31.55 kB / 1.037 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.953e-05/0.4175, allocations: 33.72 kB / 1.037 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.4177, allocations: 334.8 kB / 1.038 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.389e-05/0.4178, allocations: 43.97 kB / 1.038 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.4179, allocations: 110.3 kB / 1.038 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002314/0.4181, allocations: 172.4 kB / 1.038 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.4182, allocations: 0 / 1.038 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003607/0.4185, allocations: 210 kB / 1.038 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.4185, allocations: 4.281 kB / 1.038 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.4186, allocations: 8 kB / 1.038 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000178/0.4187, allocations: 28.78 kB / 1.038 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.4189, allocations: 35.92 kB / 1.038 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/0.42, allocations: 1.429 MB / 1.04 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001531/0.4202, allocations: 19.78 kB / 1.04 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.4202, allocations: 8 kB / 1.04 GB, free: 4.219 MB / 0.8106 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.0001425/0.4204, allocations: 157.8 kB / 1.04 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.926e-05/0.4204, allocations: 15.81 kB / 1.04 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.234e-05/0.4204, allocations: 17.41 kB / 1.04 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.4204, allocations: 4 kB / 1.04 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.4205, allocations: 64 / 1.04 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.4205, allocations: 7.984 kB / 1.04 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005935/0.4211, allocations: 479.2 kB / 1.04 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.4211, allocations: 4 kB / 1.04 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.32e-05/0.4211, allocations: 12 kB / 1.04 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.721e-05/0.4212, allocations: 24.83 kB / 1.04 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.4213, allocations: 4 kB / 1.04 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009809/0.4222, allocations: 1.433 MB / 1.042 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.4223, allocations: 0 / 1.042 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002942/0.4226, allocations: 244.2 kB / 1.042 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 8.579e-05/0.4226, allocations: 96.91 kB / 1.042 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.457e-05/0.4227, allocations: 7.984 kB / 1.042 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.4228, allocations: 4 kB / 1.042 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.45e-05/0.4229, allocations: 11.98 kB / 1.042 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.144e-06/0.4229, allocations: 0 / 1.042 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001324/0.423, allocations: 149.5 kB / 1.042 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.423, allocations: 0 / 1.042 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003454/0.4234, allocations: 63.78 kB / 1.042 GB, free: 1.266 MB / 0.8106 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.0001193/0.4235, allocations: 95.25 kB / 1.042 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004515/0.4239, allocations: 227.1 kB / 1.043 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.424, allocations: 4.562 kB / 1.043 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002242/0.4242, allocations: 166.6 kB / 1.043 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003871/0.4246, allocations: 40.06 kB / 1.043 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007176/0.4253, allocations: 397.4 kB / 1.043 GB, free: 308 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003678/0.4257, allocations: 0.7593 MB / 1.044 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.099e-05/0.4258, allocations: 29.53 kB / 1.044 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.606e-05/0.4259, allocations: 15.44 kB / 1.044 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of SimCode: time 3.506e-06/0.4259, allocations: 0 / 1.044 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of Templates: time 0.005393/0.4313, allocations: 1.919 MB / 1.046 GB, free: 13.57 MB / 0.8262 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 -s cvode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches