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.001169/0.001169, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.01026/0.01026, allocations: 172.5 kB / 16.26 MB, free: 6.676 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.527/1.527, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.937/2.937, allocations: 462.6 MB / 0.7364 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005387/0.0005389, allocations: 12.66 kB / 0.9027 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3803/0.3809, allocations: 159.6 MB / 1.059 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.004874/0.3858, allocations: 3.527 MB / 1.062 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003177/0.389, allocations: 1.738 MB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002524/0.3893, allocations: 7.938 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003046/0.3896, allocations: 55.56 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0007016/0.3903, allocations: 239 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.00073/0.3911, allocations: 235.5 kB / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007136/0.3918, allocations: 0.6973 MB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005127/0.3923, allocations: 365.5 kB / 1.065 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002093/0.3925, allocations: 147.4 kB / 1.065 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003803/0.3929, allocations: 223.1 kB / 1.066 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.676e-05/0.393, allocations: 16 kB / 1.066 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003791/0.3934, allocations: 239.5 kB / 1.066 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001178/0.3935, allocations: 107.7 kB / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001838/0.3937, allocations: 184.8 kB / 1.066 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005447/0.3942, allocations: 490.5 kB / 1.067 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3942, allocations: 0 / 1.067 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.507e-06/0.3942, allocations: 0 / 1.067 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.763e-06/0.3943, allocations: 3.938 kB / 1.067 GB, free: 12.7 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.001249/0.3955, allocations: 0.6004 MB / 1.067 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.3956, allocations: 8.031 kB / 1.067 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000601/0.3962, allocations: 84.5 kB / 1.067 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005314/0.3967, allocations: 295.5 kB / 1.068 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.515e-05/0.3968, allocations: 21.03 kB / 1.068 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.151e-05/0.3968, allocations: 32.36 kB / 1.068 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008286/0.3977, allocations: 0.4902 MB / 1.068 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.3977, allocations: 4 kB / 1.068 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.476e-05/0.3977, allocations: 12 kB / 1.068 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.949e-05/0.3978, allocations: 36.62 kB / 1.068 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007501/0.3986, allocations: 390.2 kB / 1.069 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00236/0.4009, allocations: 2.048 MB / 1.071 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006444/0.4016, allocations: 222.7 kB / 1.071 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004596/0.4021, allocations: 176.7 kB / 1.071 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.4021, allocations: 0 / 1.071 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.498e-05/0.4021, allocations: 38.56 kB / 1.071 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.223e-06/0.4022, allocations: 0 / 1.071 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18): time 0.001259/0.4034, allocations: 452.6 kB / 1.071 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/0.4035, allocations: 55.41 kB / 1.071 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000316/0.4038, allocations: 274.5 kB / 1.072 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.4039, allocations: 29.7 kB / 1.072 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/0.404, allocations: 203.8 kB / 1.072 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.304e-05/0.4041, allocations: 67.09 kB / 1.072 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.886e-05/0.4042, allocations: 29.7 kB / 1.072 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001533/0.4043, allocations: 338.8 kB / 1.072 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000259/0.4046, allocations: 100.5 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000377/0.405, allocations: 215.6 kB / 1.073 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000621/0.4056, allocations: 338.9 kB / 1.073 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.471e-06/0.4056, allocations: 4 kB / 1.073 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008005/0.4064, allocations: 376 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001253/0.4066, allocations: 194 kB / 1.074 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.4066, allocations: 4 kB / 1.074 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001957/0.4068, allocations: 32.83 kB / 1.074 GB, free: 5.039 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002715/0.4071, allocations: 79.83 kB / 1.074 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001446/0.4085, allocations: 1.331 MB / 1.075 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002619/0.4088, allocations: 47.67 kB / 1.075 GB, free: 3.453 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/0.4088, allocations: 12 kB / 1.075 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.364e-06/0.4088, allocations: 4 kB / 1.075 GB, free: 3.438 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006519/0.4095, allocations: 309.3 kB / 1.075 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.4095, allocations: 4 kB / 1.075 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.633e-06/0.4095, allocations: 7.984 kB / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002886/0.4098, allocations: 84.02 kB / 1.075 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.4098, allocations: 4 kB / 1.075 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002016/0.41, allocations: 43.72 kB / 1.075 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.4101, allocations: 12 kB / 1.075 GB, free: 2.984 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.0001932/0.4103, allocations: 245 kB / 1.076 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.117e-05/0.4103, allocations: 31.72 kB / 1.076 GB, free: 2.703 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.411e-05/0.4104, allocations: 38.05 kB / 1.076 GB, free: 2.668 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.4104, allocations: 4 kB / 1.076 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.4104, allocations: 7.875 kB / 1.076 GB, free: 2.656 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.4104, allocations: 0 / 1.076 GB, free: 2.656 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/0.4116, allocations: 0.7712 MB / 1.077 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.4116, allocations: 0 / 1.077 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001943/0.4118, allocations: 47.91 kB / 1.077 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.086e-05/0.4119, allocations: 24.84 kB / 1.077 GB, free: 1.734 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.55e-05/0.4119, allocations: 4 kB / 1.077 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001/0.4129, allocations: 1.319 MB / 1.078 GB, free: 280 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.4129, allocations: 3.938 kB / 1.078 GB, free: 276 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000674/0.4136, allocations: 393.8 kB / 1.078 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.4138, allocations: 108.8 kB / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.4138, allocations: 15.86 kB / 1.078 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001934/0.414, allocations: 27.98 kB / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.977e-05/0.4141, allocations: 7.984 kB / 1.078 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/0.4141, allocations: 12 kB / 1.078 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001741/0.4143, allocations: 186 kB / 1.079 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4143, allocations: 0 / 1.079 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005624/0.4148, allocations: 143.5 kB / 1.079 GB, free: 15.35 MB / 0.8419 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.0001426/0.415, allocations: 99.25 kB / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001096/0.4161, allocations: 0.52 MB / 1.079 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4161, allocations: 0 / 1.079 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003565/0.4165, allocations: 221.1 kB / 1.08 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005167/0.417, allocations: 66.77 kB / 1.08 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009456/0.418, allocations: 0.7029 MB / 1.08 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.4184, allocations: 0.7996 MB / 1.081 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002186/0.4186, allocations: 74.16 kB / 1.081 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.979e-05/0.4186, allocations: 23.44 kB / 1.081 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of SimCode: time 4.5e-07/0.4187, allocations: 0 / 1.081 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of Templates: time 0.006837/0.4255, allocations: 3.207 MB / 1.084 GB, free: 9.586 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/jenkins/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