Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 116.7 kB / 16.37 MB, free: 6.012 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.001701/0.001702, allocations: 192.6 kB / 17.31 MB, free: 5.609 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.419/1.419, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.477/2.477, allocations: 437.1 MB / 0.7112 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001382, allocations: 56.25 kB / 0.8707 GB, free: 1.438 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.3113, allocations: 151.7 MB / 1.019 GB, free: 9.844 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.005905/0.3173, allocations: 3.857 MB / 1.023 GB, free: 5.965 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0028/0.3201, allocations: 1.776 MB / 1.024 GB, free: 4.18 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001629/0.3203, allocations: 8 kB / 1.024 GB, free: 4.172 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001316/0.3216, allocations: 455.3 kB / 1.025 GB, free: 3.727 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0005287/0.3222, allocations: 242.8 kB / 1.025 GB, free: 3.488 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006067/0.3228, allocations: 254.4 kB / 1.025 GB, free: 3.242 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0005294/0.3233, allocations: 0.4946 MB / 1.026 GB, free: 2.746 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005652/0.3239, allocations: 352.8 kB / 1.026 GB, free: 2.402 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002144/0.3241, allocations: 199.3 kB / 1.026 GB, free: 2.207 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000362/0.3245, allocations: 235.1 kB / 1.026 GB, free: 1.977 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.58e-05/0.3245, allocations: 28 kB / 1.026 GB, free: 1.949 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003152/0.3249, allocations: 191.5 kB / 1.027 GB, free: 1.762 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001426/0.325, allocations: 135.7 kB / 1.027 GB, free: 1.629 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001987/0.3252, allocations: 179.1 kB / 1.027 GB, free: 1.453 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0005979/0.3258, allocations: 490.4 kB / 1.027 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3258, allocations: 0 / 1.027 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.464e-06/0.3259, allocations: 0 / 1.027 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.717e-06/0.3259, allocations: 0 / 1.027 GB, free: 0.9727 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.001183/0.3271, allocations: 0.6589 MB / 1.028 GB, free: 272 kB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.3271, allocations: 12.92 kB / 1.028 GB, free: 260 kB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005623/0.3277, allocations: 88.41 kB / 1.028 GB, free: 172 kB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004697/0.3282, allocations: 305.1 kB / 1.028 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.684e-05/0.3282, allocations: 21.03 kB / 1.028 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.483e-05/0.3283, allocations: 32.34 kB / 1.028 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008036/0.3291, allocations: 486 kB / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.3291, allocations: 0 / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.818e-05/0.3291, allocations: 19.92 kB / 1.029 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.416e-05/0.3292, allocations: 40.62 kB / 1.029 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007367/0.3299, allocations: 366.2 kB / 1.029 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002097/0.3321, allocations: 2.033 MB / 1.031 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005422/0.3326, allocations: 218.7 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003683/0.333, allocations: 160.8 kB / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.333, allocations: 0 / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.3331, allocations: 34.56 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=18): time 1.102e-06/0.3331, allocations: 0 / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18): time 0.001054/0.3341, allocations: 425.7 kB / 1.032 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/0.3342, allocations: 55.34 kB / 1.032 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002497/0.3344, allocations: 270.5 kB / 1.032 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/0.3345, allocations: 29.7 kB / 1.032 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.3346, allocations: 207.7 kB / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.717e-05/0.3347, allocations: 71.11 kB / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.853e-05/0.3348, allocations: 57.89 kB / 1.033 GB, free: 11.04 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.3349, allocations: 338.8 kB / 1.033 GB, free: 10.7 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000233/0.3351, allocations: 97.91 kB / 1.033 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003021/0.3354, allocations: 200.2 kB / 1.033 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005344/0.336, allocations: 325.3 kB / 1.034 GB, free: 9.988 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.336, allocations: 0 / 1.034 GB, free: 9.988 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007166/0.3367, allocations: 352.9 kB / 1.034 GB, free: 9.637 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.3367, allocations: 4 kB / 1.034 GB, free: 9.633 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.3368, allocations: 4 kB / 1.034 GB, free: 9.629 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002119/0.337, allocations: 36.78 kB / 1.034 GB, free: 9.59 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002645/0.3373, allocations: 72.08 kB / 1.034 GB, free: 9.52 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001262/0.3385, allocations: 1.441 MB / 1.036 GB, free: 7.941 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002543/0.3388, allocations: 39.67 kB / 1.036 GB, free: 7.902 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.233e-05/0.3388, allocations: 12 kB / 1.036 GB, free: 7.891 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003308/0.3392, allocations: 217.3 kB / 1.036 GB, free: 7.676 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003026/0.3395, allocations: 217 kB / 1.036 GB, free: 7.406 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000508/0.34, allocations: 319.1 kB / 1.036 GB, free: 7.039 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.934e-06/0.34, allocations: 0 / 1.036 GB, free: 7.039 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006305/0.3406, allocations: 342.4 kB / 1.037 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.3407, allocations: 4.5 kB / 1.037 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.3407, allocations: 15.94 kB / 1.037 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.45e-06/0.3407, allocations: 4 kB / 1.037 GB, free: 6.676 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002655/0.341, allocations: 71.89 kB / 1.037 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.341, allocations: 8 kB / 1.037 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002323/0.3412, allocations: 35.67 kB / 1.037 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.05e-05/0.3412, allocations: 12 kB / 1.037 GB, free: 6.551 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (32): * Single equations (assignments): 31 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001336/0.3414, allocations: 208.1 kB / 1.037 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.1e-05/0.3414, allocations: 27.7 kB / 1.037 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.09e-05/0.3415, allocations: 26.19 kB / 1.037 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.3415, allocations: 7.938 kB / 1.037 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.3415, allocations: 0 / 1.037 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.3415, allocations: 3.984 kB / 1.037 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.3427, allocations: 0.746 MB / 1.038 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3427, allocations: 4 kB / 1.038 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001938/0.3429, allocations: 39.91 kB / 1.038 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001053/0.343, allocations: 28.91 kB / 1.038 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.3431, allocations: 4 kB / 1.038 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001017/0.3441, allocations: 1.422 MB / 1.039 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3441, allocations: 0 / 1.039 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005972/0.3447, allocations: 373.8 kB / 1.04 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.3448, allocations: 116.8 kB / 1.04 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.707e-05/0.3449, allocations: 7.984 kB / 1.04 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.345, allocations: 15.98 kB / 1.04 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.713e-05/0.3451, allocations: 11.98 kB / 1.04 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.3451, allocations: 23.92 kB / 1.04 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001634/0.3453, allocations: 182 kB / 1.04 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3453, allocations: 0 / 1.04 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000566/0.3459, allocations: 143.5 kB / 1.04 GB, free: 2.914 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001318/0.346, allocations: 99.23 kB / 1.04 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001016/0.347, allocations: 495.9 kB / 1.041 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.3471, allocations: 4.062 kB / 1.041 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003491/0.3474, allocations: 226.4 kB / 1.041 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004753/0.3479, allocations: 69.03 kB / 1.041 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008813/0.3488, allocations: 0.5489 MB / 1.042 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003687/0.3492, allocations: 0.7957 MB / 1.042 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001985/0.3494, allocations: 70.22 kB / 1.042 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.046e-05/0.3494, allocations: 27.44 kB / 1.042 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of SimCode: time 3.5e-07/0.3494, allocations: 0 / 1.042 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of Templates: time 0.007527/0.357, allocations: 3.517 MB / 1.046 GB, free: 13.03 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches