Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001533/0.001533, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001377/0.001378, allocations: 193.8 kB / 16.14 MB, free: 6.738 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.549/1.549, 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 10.1.1-maint.10.0.x/package.mo): time 2.919/2.919, allocations: 437 MB / 0.7099 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001939/0.00194, allocations: 59.91 kB / 0.8686 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7676/0.7696, allocations: 151.6 MB / 1.017 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.005272/0.7749, allocations: 3.268 MB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002401/0.7773, allocations: 1.375 MB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001497/0.7775, allocations: 4 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001058/0.7786, allocations: 326.7 kB / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003704/0.7789, allocations: 143.4 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003812/0.7793, allocations: 127.7 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005047/0.7798, allocations: 466.7 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003433/0.7802, allocations: 167.8 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001829/0.7804, allocations: 115.6 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003084/0.7807, allocations: 151.4 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.913e-05/0.7808, allocations: 16 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003916/0.7812, allocations: 207.6 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.7813, allocations: 87.72 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001455/0.7814, allocations: 111.4 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004867/0.7819, allocations: 356.8 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.7819, allocations: 0 / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.172e-06/0.7819, allocations: 4 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.7819, allocations: 0 / 1.023 GB, free: 11.89 MB / 0.7794 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.001075/0.783, allocations: 0.5381 MB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.7831, allocations: 12.03 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006166/0.7837, allocations: 76.58 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003378/0.7841, allocations: 257.5 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.181e-05/0.7841, allocations: 16.81 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.772e-05/0.7841, allocations: 20.31 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005627/0.7847, allocations: 324.6 kB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.7847, allocations: 0 / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.202e-05/0.7848, allocations: 12 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-05/0.7848, allocations: 16.38 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003961/0.7852, allocations: 213.5 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001817/0.787, allocations: 1.49 MB / 1.026 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004812/0.7875, allocations: 211.6 kB / 1.026 GB, free: 8.426 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.7877, allocations: 44.83 kB / 1.026 GB, free: 8.379 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.7877, allocations: 4 kB / 1.026 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/0.7877, allocations: 38.48 kB / 1.027 GB, free: 8.328 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 3.546e-06/0.7877, allocations: 0 / 1.027 GB, free: 8.328 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0006378/0.7884, allocations: 263.3 kB / 1.027 GB, free: 8.043 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.6e-05/0.7884, allocations: 55.41 kB / 1.027 GB, free: 7.977 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002188/0.7887, allocations: 196.8 kB / 1.027 GB, free: 7.777 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.7887, allocations: 29.7 kB / 1.027 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.7888, allocations: 175.6 kB / 1.027 GB, free: 7.562 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.277e-05/0.7889, allocations: 39.48 kB / 1.027 GB, free: 7.523 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.936e-05/0.789, allocations: 37.72 kB / 1.027 GB, free: 7.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001593/0.7891, allocations: 326.8 kB / 1.028 GB, free: 7.152 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.7892, allocations: 43.98 kB / 1.028 GB, free: 7.109 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/0.7894, allocations: 112.5 kB / 1.028 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002695/0.7897, allocations: 168.4 kB / 1.028 GB, free: 6.773 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.7897, allocations: 0 / 1.028 GB, free: 6.773 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004339/0.7901, allocations: 214.2 kB / 1.028 GB, free: 6.555 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.7902, allocations: 4 kB / 1.028 GB, free: 6.551 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.7902, allocations: 4 kB / 1.028 GB, free: 6.547 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002125/0.7904, allocations: 28.78 kB / 1.028 GB, free: 6.516 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.7905, allocations: 35.92 kB / 1.028 GB, free: 6.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001234/0.7918, allocations: 1.327 MB / 1.029 GB, free: 5.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.7919, allocations: 19.75 kB / 1.029 GB, free: 5 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/0.792, allocations: 4 kB / 1.029 GB, free: 4.996 MB / 0.7794 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.0001702/0.7921, allocations: 154.5 kB / 1.03 GB, free: 4.836 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.962e-05/0.7922, allocations: 23.69 kB / 1.03 GB, free: 4.812 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.566e-05/0.7922, allocations: 21.39 kB / 1.03 GB, free: 4.797 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.7923, allocations: 7.984 kB / 1.03 GB, free: 4.789 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.7923, allocations: 0 / 1.03 GB, free: 4.789 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.7923, allocations: 64 / 1.03 GB, free: 4.789 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000693/0.793, allocations: 483.2 kB / 1.03 GB, free: 4.258 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.793, allocations: 8 kB / 1.03 GB, free: 4.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.989e-05/0.7931, allocations: 11.98 kB / 1.03 GB, free: 4.238 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.027e-05/0.7932, allocations: 24.84 kB / 1.03 GB, free: 4.211 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.7932, allocations: 4 kB / 1.03 GB, free: 4.207 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001119/0.7943, allocations: 1.323 MB / 1.031 GB, free: 2.754 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.7943, allocations: 4.031 kB / 1.031 GB, free: 2.75 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003234/0.7946, allocations: 228.2 kB / 1.032 GB, free: 2.508 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.66e-05/0.7948, allocations: 108.8 kB / 1.032 GB, free: 2.383 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.327e-05/0.7948, allocations: 0 / 1.032 GB, free: 2.383 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/0.7949, allocations: 15.92 kB / 1.032 GB, free: 2.367 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.417e-05/0.795, allocations: 7.984 kB / 1.032 GB, free: 2.359 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.234e-06/0.795, allocations: 0 / 1.032 GB, free: 2.359 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001587/0.7951, allocations: 148.5 kB / 1.032 GB, free: 2.215 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7952, allocations: 0 / 1.032 GB, free: 2.215 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003681/0.7955, allocations: 55.84 kB / 1.032 GB, free: 2.16 MB / 0.7794 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.0001507/0.7957, allocations: 109.9 kB / 1.032 GB, free: 2.047 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004937/0.7962, allocations: 226.5 kB / 1.032 GB, free: 1.812 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.7962, allocations: 0 / 1.032 GB, free: 1.812 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002282/0.7964, allocations: 163.7 kB / 1.033 GB, free: 1.641 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003986/0.7968, allocations: 36.14 kB / 1.033 GB, free: 1.605 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007878/0.7976, allocations: 482.5 kB / 1.033 GB, free: 1.109 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000414/0.7981, allocations: 0.7556 MB / 1.034 GB, free: 336 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.000121/0.7982, allocations: 33.7 kB / 1.034 GB, free: 296 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.41e-05/0.7983, allocations: 19.44 kB / 1.034 GB, free: 276 kB / 0.7794 GB Notification: Performance of SimCode: time 4.31e-07/0.7983, allocations: 3.938 kB / 1.034 GB, free: 272 kB / 0.7794 GB Notification: Performance of Templates: time 0.00563/0.8039, allocations: 1.826 MB / 1.036 GB, free: 14.45 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & ./Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches