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.01184/0.01184, allocations: 100.8 kB / 15.73 MB, free: 5.953 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.002475/0.002475, allocations: 187 kB / 16.67 MB, free: 5.883 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.538/1.538, allocations: 222.9 MB / 240.4 MB, free: 4.141 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.535/2.535, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 70.48 kB / 0.9508 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4026/0.4046, allocations: 140.4 MB / 1.088 GB, free: 1.512 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.005696/0.4103, allocations: 3.209 MB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002601/0.413, allocations: 1.379 MB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002683/0.4132, allocations: 7.938 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001301/0.4146, allocations: 330.6 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005443/0.4151, allocations: 147.2 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005261/0.4157, allocations: 151.6 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004915/0.4162, allocations: 334.6 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005292/0.4167, allocations: 255.6 kB / 1.094 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003138/0.417, allocations: 139.5 kB / 1.094 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003944/0.4174, allocations: 147.5 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.92e-05/0.4175, allocations: 20 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004102/0.4179, allocations: 167.6 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001449/0.4181, allocations: 83.73 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001813/0.4183, allocations: 127.4 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006934/0.419, allocations: 366.8 kB / 1.095 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.419, allocations: 0 / 1.095 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.804e-06/0.419, allocations: 0 / 1.095 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.56e-05/0.419, allocations: 0 / 1.095 GB, free: 10.66 MB / 0.8575 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.001153/0.4202, allocations: 0.5302 MB / 1.095 GB, free: 10.08 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.4202, allocations: 16.02 kB / 1.095 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006601/0.4209, allocations: 80.59 kB / 1.095 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003823/0.4213, allocations: 267.6 kB / 1.095 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.4213, allocations: 12.81 kB / 1.095 GB, free: 9.676 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.737e-05/0.4214, allocations: 20.38 kB / 1.095 GB, free: 9.656 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005664/0.4219, allocations: 316.6 kB / 1.096 GB, free: 9.324 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.422, allocations: 0 / 1.096 GB, free: 9.324 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.505e-05/0.422, allocations: 11.98 kB / 1.096 GB, free: 9.312 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.995e-05/0.4221, allocations: 20.42 kB / 1.096 GB, free: 9.293 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004306/0.4225, allocations: 209.6 kB / 1.096 GB, free: 9.09 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001754/0.4243, allocations: 1.486 MB / 1.097 GB, free: 7.438 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004334/0.4247, allocations: 203.6 kB / 1.098 GB, free: 7.211 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.676e-05/0.4248, allocations: 48.83 kB / 1.098 GB, free: 7.16 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.4248, allocations: 0 / 1.098 GB, free: 7.16 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.4249, allocations: 38.56 kB / 1.098 GB, free: 7.113 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 2.925e-06/0.4249, allocations: 0 / 1.098 GB, free: 7.113 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0005807/0.4255, allocations: 267.2 kB / 1.098 GB, free: 6.824 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/0.4255, allocations: 51.41 kB / 1.098 GB, free: 6.762 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002/0.4257, allocations: 207.7 kB / 1.098 GB, free: 6.551 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.678e-05/0.4258, allocations: 29.7 kB / 1.098 GB, free: 6.516 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.4259, allocations: 175.7 kB / 1.098 GB, free: 6.336 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.243e-05/0.4259, allocations: 31.55 kB / 1.098 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.887e-05/0.426, allocations: 29.72 kB / 1.098 GB, free: 6.27 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.4262, allocations: 334.8 kB / 1.099 GB, free: 5.934 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.4263, allocations: 47.91 kB / 1.099 GB, free: 5.887 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.4264, allocations: 104.6 kB / 1.099 GB, free: 5.754 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002386/0.4267, allocations: 172.4 kB / 1.099 GB, free: 5.555 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.4267, allocations: 4 kB / 1.099 GB, free: 5.551 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003986/0.4271, allocations: 214 kB / 1.099 GB, free: 5.332 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.4271, allocations: 8 kB / 1.099 GB, free: 5.324 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.4271, allocations: 0 / 1.099 GB, free: 5.324 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001853/0.4273, allocations: 28.84 kB / 1.099 GB, free: 5.293 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.4275, allocations: 40.2 kB / 1.099 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.4286, allocations: 1.433 MB / 1.101 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001488/0.4287, allocations: 23.83 kB / 1.101 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.447e-05/0.4287, allocations: 4 kB / 1.101 GB, free: 3.652 MB / 0.8575 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.0001332/0.4289, allocations: 145.8 kB / 1.101 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.946e-05/0.4289, allocations: 15.81 kB / 1.101 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.711e-05/0.429, allocations: 25.39 kB / 1.101 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.429, allocations: 3.938 kB / 1.101 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.429, allocations: 4.062 kB / 1.101 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.429, allocations: 0 / 1.101 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00065/0.4297, allocations: 483.2 kB / 1.101 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.4297, allocations: 0 / 1.101 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.766e-05/0.4298, allocations: 15.92 kB / 1.101 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.356e-05/0.4299, allocations: 24.84 kB / 1.101 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.4299, allocations: 0 / 1.101 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009877/0.4309, allocations: 1.429 MB / 1.103 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.4309, allocations: 0 / 1.103 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002901/0.4312, allocations: 240.2 kB / 1.103 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.047e-05/0.4313, allocations: 104.8 kB / 1.103 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.299e-05/0.4313, allocations: 4 kB / 1.103 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.4314, allocations: 12 kB / 1.103 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.014e-05/0.4315, allocations: 7.984 kB / 1.103 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.4315, allocations: 4 kB / 1.103 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001319/0.4316, allocations: 153.4 kB / 1.103 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.01e-07/0.4317, allocations: 0 / 1.103 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003467/0.432, allocations: 59.78 kB / 1.103 GB, free: 0.707 MB / 0.8575 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.0001462/0.4322, allocations: 99.78 kB / 1.104 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005077/0.4327, allocations: 230.5 kB / 1.104 GB, free: 368 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.4327, allocations: 0 / 1.104 GB, free: 368 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002286/0.4329, allocations: 158.7 kB / 1.104 GB, free: 196 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003905/0.4333, allocations: 41.94 kB / 1.104 GB, free: 160 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007777/0.4341, allocations: 391.6 kB / 1.104 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003957/0.4345, allocations: 0.7554 MB / 1.105 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001169/0.4346, allocations: 25.52 kB / 1.105 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.53e-05/0.4347, allocations: 19.44 kB / 1.105 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of SimCode: time 2.11e-07/0.4347, allocations: 0 / 1.105 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of Templates: time 0.005713/0.4404, allocations: 1.962 MB / 1.107 GB, free: 12.98 MB / 0.8731 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