Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_latest_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_latest_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.008711/0.008711, allocations: 101 kB / 15.88 MB, free: 5.863 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.001987/0.001987, allocations: 191 kB / 16.79 MB, free: 5.805 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.388/1.388, allocations: 222.9 MB / 240.5 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.711/2.711, allocations: 461.8 MB / 0.7348 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 65.95 kB / 0.899 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.3178, allocations: 157.4 MB / 1.053 GB, free: 8.25 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.005673/0.3235, allocations: 3.898 MB / 1.057 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003091/0.3266, allocations: 1.761 MB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003127/0.3269, allocations: 7.938 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001365/0.3283, allocations: 421.5 kB / 1.059 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006592/0.329, allocations: 243 kB / 1.059 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006649/0.3297, allocations: 231.5 kB / 1.059 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0008477/0.3305, allocations: 0.7013 MB / 1.06 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004601/0.331, allocations: 233 kB / 1.06 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003196/0.3313, allocations: 171.3 kB / 1.06 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004935/0.3318, allocations: 243.1 kB / 1.06 GB, free: 356 kB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.482e-05/0.3319, allocations: 20 kB / 1.06 GB, free: 336 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004518/0.3324, allocations: 227.5 kB / 1.061 GB, free: 108 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001714/0.3326, allocations: 123.7 kB / 1.061 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002198/0.3328, allocations: 171.1 kB / 1.061 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004536/0.3332, allocations: 387.3 kB / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3333, allocations: 4 kB / 1.061 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.62e-07/0.3333, allocations: 0 / 1.061 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.614e-05/0.3333, allocations: 0 / 1.061 GB, free: 15.43 MB / 0.8262 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.001574/0.3349, allocations: 0.6549 MB / 1.062 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.3349, allocations: 8.031 kB / 1.062 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006875/0.3356, allocations: 84.41 kB / 1.062 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005291/0.3362, allocations: 291.6 kB / 1.062 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.493e-05/0.3362, allocations: 21.03 kB / 1.062 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.416e-05/0.3363, allocations: 32.36 kB / 1.062 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008929/0.3372, allocations: 486 kB / 1.063 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.3372, allocations: 7.938 kB / 1.063 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.963e-05/0.3372, allocations: 12 kB / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-05/0.3373, allocations: 32.64 kB / 1.063 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007938/0.3381, allocations: 370.3 kB / 1.063 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002364/0.3405, allocations: 2.052 MB / 1.065 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005724/0.3411, allocations: 206.8 kB / 1.065 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003706/0.3414, allocations: 152.8 kB / 1.066 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.714e-05/0.3415, allocations: 8 kB / 1.066 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.3415, allocations: 38.48 kB / 1.066 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 2.174e-06/0.3415, allocations: 3.938 kB / 1.066 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18): time 0.001114/0.3426, allocations: 416.8 kB / 1.066 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.3427, allocations: 55.41 kB / 1.066 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002595/0.343, allocations: 270.6 kB / 1.066 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.343, allocations: 29.69 kB / 1.066 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.3431, allocations: 211.7 kB / 1.067 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.003e-05/0.3432, allocations: 59.19 kB / 1.067 GB, free: 9.59 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.445e-05/0.3433, allocations: 57.89 kB / 1.067 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.3434, allocations: 338.8 kB / 1.067 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002576/0.3437, allocations: 101.8 kB / 1.067 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003045/0.344, allocations: 203.6 kB / 1.067 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005502/0.3445, allocations: 318.9 kB / 1.068 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.3446, allocations: 4 kB / 1.068 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007663/0.3453, allocations: 351.5 kB / 1.068 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.3454, allocations: 8 kB / 1.068 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.3454, allocations: 4 kB / 1.068 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002208/0.3456, allocations: 37.27 kB / 1.068 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002781/0.3459, allocations: 63.91 kB / 1.068 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001229/0.3471, allocations: 1.339 MB / 1.069 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002784/0.3474, allocations: 43.66 kB / 1.069 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.639e-05/0.3475, allocations: 12 kB / 1.069 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003658/0.3478, allocations: 220.7 kB / 1.07 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003082/0.3481, allocations: 209.6 kB / 1.07 GB, free: 6 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005394/0.3487, allocations: 321.4 kB / 1.07 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.636e-06/0.3487, allocations: 4 kB / 1.07 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0007002/0.3494, allocations: 333.4 kB / 1.07 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.3494, allocations: 8 kB / 1.07 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.3494, allocations: 15.92 kB / 1.07 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.262e-06/0.3495, allocations: 4 kB / 1.07 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002717/0.3497, allocations: 67.89 kB / 1.071 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.3498, allocations: 11.94 kB / 1.071 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002585/0.35, allocations: 39.72 kB / 1.071 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.991e-05/0.35, allocations: 12 kB / 1.071 GB, free: 5.141 MB / 0.8262 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.0001254/0.3502, allocations: 200.2 kB / 1.071 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.135e-05/0.3502, allocations: 27.66 kB / 1.071 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.725e-05/0.3503, allocations: 34.17 kB / 1.071 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3503, allocations: 3.938 kB / 1.071 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3503, allocations: 0 / 1.071 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.3503, allocations: 0 / 1.071 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.3515, allocations: 0.7596 MB / 1.072 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.3516, allocations: 0 / 1.072 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001963/0.3518, allocations: 39.97 kB / 1.072 GB, free: 4 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001088/0.3519, allocations: 28.91 kB / 1.072 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.3519, allocations: 15.92 kB / 1.072 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009336/0.3529, allocations: 1.308 MB / 1.073 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3529, allocations: 0 / 1.073 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006218/0.3535, allocations: 371.2 kB / 1.073 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.3536, allocations: 120.7 kB / 1.073 GB, free: 1.984 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.509e-05/0.3537, allocations: 8 kB / 1.073 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001897/0.3539, allocations: 11.98 kB / 1.073 GB, free: 1.965 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.572e-05/0.3539, allocations: 15.97 kB / 1.073 GB, free: 1.949 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.354, allocations: 8 kB / 1.073 GB, free: 1.941 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001684/0.3541, allocations: 189.9 kB / 1.074 GB, free: 1.754 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3541, allocations: 0 / 1.074 GB, free: 1.754 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005964/0.3547, allocations: 139.5 kB / 1.074 GB, free: 1.617 MB / 0.8262 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.0001162/0.3549, allocations: 107.2 kB / 1.074 GB, free: 1.5 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001053/0.3559, allocations: 491.8 kB / 1.074 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3559, allocations: 0 / 1.074 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003408/0.3563, allocations: 210.7 kB / 1.075 GB, free: 0.7891 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000516/0.3568, allocations: 75.33 kB / 1.075 GB, free: 0.7188 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.3579, allocations: 0.7203 MB / 1.075 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003709/0.3582, allocations: 0.7996 MB / 1.076 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.395e-05/0.3583, allocations: 27.42 kB / 1.076 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of SimCode: time 7.01e-07/0.3583, allocations: 0 / 1.076 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of Templates: time 0.007674/0.366, allocations: 4.758 MB / 1.081 GB, free: 10.36 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches