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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001501/0.001501, allocations: 100.9 kB / 16.27 MB, free: 6.414 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.001443/0.001443, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.337/1.337, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.635/2.635, allocations: 482.4 MB / 0.7553 GB, free: 6.965 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001909, allocations: 63.12 kB / 0.9245 GB, free: 15.95 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7294/0.7314, allocations: 162.2 MB / 1.083 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.00449/0.7359, allocations: 3.215 MB / 1.086 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002376/0.7383, allocations: 1.363 MB / 1.087 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.7385, allocations: 8.406 kB / 1.087 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001092/0.7396, allocations: 352.6 kB / 1.088 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0003873/0.74, allocations: 145.9 kB / 1.088 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003984/0.7404, allocations: 147.3 kB / 1.088 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0004093/0.7409, allocations: 329.7 kB / 1.088 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004565/0.7413, allocations: 250 kB / 1.089 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002205/0.7416, allocations: 140 kB / 1.089 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003036/0.7419, allocations: 152.3 kB / 1.089 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.887e-05/0.7419, allocations: 23.16 kB / 1.089 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003273/0.7423, allocations: 163.2 kB / 1.089 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.7424, allocations: 92.84 kB / 1.089 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.7425, allocations: 111.8 kB / 1.089 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0005042/0.743, allocations: 358.6 kB / 1.09 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.7431, allocations: 0.5156 kB / 1.09 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of FrontEnd: time 9.72e-07/0.7431, allocations: 0 / 1.09 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.171e-06/0.7431, allocations: 1.125 kB / 1.09 GB, free: 13.47 MB / 0.8419 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.0008934/0.744, allocations: 0.5422 MB / 1.09 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.744, allocations: 8.438 kB / 1.09 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000581/0.7446, allocations: 80.62 kB / 1.09 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000325/0.7449, allocations: 245.6 kB / 1.09 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.255e-05/0.745, allocations: 24.11 kB / 1.09 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.233e-05/0.745, allocations: 17.66 kB / 1.09 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005128/0.7455, allocations: 312.5 kB / 1.091 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.7455, allocations: 0 / 1.091 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.269e-05/0.7456, allocations: 14.59 kB / 1.091 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.604e-05/0.7456, allocations: 16.48 kB / 1.091 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003893/0.746, allocations: 212.8 kB / 1.091 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001742/0.7478, allocations: 1.498 MB / 1.092 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004287/0.7482, allocations: 203 kB / 1.093 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.623e-05/0.7483, allocations: 43.95 kB / 1.093 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.7484, allocations: 6.234 kB / 1.093 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.7484, allocations: 35.78 kB / 1.093 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.7484, allocations: 3.938 kB / 1.093 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.0005687/0.749, allocations: 257.8 kB / 1.093 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.811e-05/0.749, allocations: 57.52 kB / 1.093 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002104/0.7492, allocations: 203.5 kB / 1.093 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.139e-05/0.7493, allocations: 38.27 kB / 1.093 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.7494, allocations: 173.4 kB / 1.093 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.851e-05/0.7494, allocations: 29.86 kB / 1.093 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.339e-05/0.7495, allocations: 38.12 kB / 1.093 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001644/0.7497, allocations: 327.1 kB / 1.094 GB, free: 9.969 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.7498, allocations: 42.92 kB / 1.094 GB, free: 9.957 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.75, allocations: 112.5 kB / 1.094 GB, free: 9.855 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00026/0.7502, allocations: 168.4 kB / 1.094 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.7502, allocations: 0 / 1.094 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003858/0.7506, allocations: 212.8 kB / 1.094 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.7506, allocations: 6.703 kB / 1.094 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.7507, allocations: 2.438 kB / 1.094 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001597/0.7508, allocations: 31.31 kB / 1.094 GB, free: 9.605 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.751, allocations: 32.84 kB / 1.094 GB, free: 9.602 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001227/0.7522, allocations: 1.425 MB / 1.096 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.7524, allocations: 19.95 kB / 1.096 GB, free: 8.168 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.7524, allocations: 6.625 kB / 1.096 GB, free: 8.168 MB / 0.8419 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.0001592/0.7525, allocations: 156.2 kB / 1.096 GB, free: 8.027 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.089e-05/0.7526, allocations: 16.66 kB / 1.096 GB, free: 8.02 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.573e-05/0.7526, allocations: 19.73 kB / 1.096 GB, free: 8.008 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.7526, allocations: 6.156 kB / 1.096 GB, free: 8.004 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.7526, allocations: 4.156 kB / 1.096 GB, free: 8 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.7527, allocations: 5.625 kB / 1.096 GB, free: 7.996 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006644/0.7533, allocations: 489.4 kB / 1.096 GB, free: 7.613 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.7533, allocations: 1.156 kB / 1.096 GB, free: 7.613 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.394e-05/0.7534, allocations: 11.67 kB / 1.096 GB, free: 7.613 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.97e-05/0.7535, allocations: 23.67 kB / 1.096 GB, free: 7.602 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/0.7535, allocations: 4.531 kB / 1.096 GB, free: 7.598 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001175/0.7547, allocations: 1.427 MB / 1.098 GB, free: 6.176 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.7547, allocations: 0 / 1.098 GB, free: 6.176 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003259/0.755, allocations: 242.2 kB / 1.098 GB, free: 5.992 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.717e-05/0.7551, allocations: 100.2 kB / 1.098 GB, free: 5.887 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.216e-05/0.7552, allocations: 0.6875 kB / 1.098 GB, free: 5.887 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001233/0.7553, allocations: 10.55 kB / 1.098 GB, free: 5.883 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.166e-05/0.7553, allocations: 9.203 kB / 1.098 GB, free: 5.879 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/0.7554, allocations: 3.047 kB / 1.098 GB, free: 5.879 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000144/0.7555, allocations: 149.3 kB / 1.098 GB, free: 5.781 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7555, allocations: 0.5625 kB / 1.098 GB, free: 5.781 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003542/0.7559, allocations: 63.72 kB / 1.098 GB, free: 5.762 MB / 0.8419 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.000127/0.756, allocations: 101.7 kB / 1.099 GB, free: 5.668 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004588/0.7565, allocations: 236.2 kB / 1.099 GB, free: 5.516 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.7565, allocations: 0 / 1.099 GB, free: 5.516 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002251/0.7567, allocations: 169.2 kB / 1.099 GB, free: 5.383 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003646/0.7571, allocations: 48.7 kB / 1.099 GB, free: 5.359 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007373/0.7578, allocations: 425.6 kB / 1.099 GB, free: 5.086 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004019/0.7583, allocations: 0.7567 MB / 1.1 GB, free: 4.379 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.053e-05/0.7583, allocations: 20.39 kB / 1.1 GB, free: 4.367 MB / 0.8419 GB Notification: Performance of SimCode: time 2.01e-07/0.7583, allocations: 1.25 kB / 1.1 GB, free: 4.367 MB / 0.8419 GB Notification: Performance of Templates: time 0.005665/0.764, allocations: 3.221 MB / 1.103 GB, free: 4.117 MB / 0.8419 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=400 -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