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.001122/0.001121, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.0009669/0.0009674, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.784/2.784, allocations: 436.5 MB / 0.7104 GB, free: 7.953 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005864/0.0005865, allocations: 8 kB / 0.8708 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7574/0.758, allocations: 153.6 MB / 1.021 GB, free: 1.184 MB / 0.7638 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.004794/0.7628, allocations: 3.304 MB / 1.024 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002807/0.7657, allocations: 1.649 MB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002239/0.766, allocations: 4 kB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002266/0.7662, allocations: 55.61 kB / 1.026 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005161/0.7667, allocations: 159.5 kB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005705/0.7673, allocations: 195.5 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004126/0.7677, allocations: 291.3 kB / 1.026 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000437/0.7682, allocations: 340.9 kB / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002149/0.7684, allocations: 131.5 kB / 1.027 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002834/0.7687, allocations: 155.4 kB / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.742e-05/0.7687, allocations: 16 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002603/0.769, allocations: 83.88 kB / 1.027 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.7691, allocations: 99.72 kB / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.308e-05/0.7692, allocations: 89.45 kB / 1.027 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004206/0.7696, allocations: 369 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.7696, allocations: 0 / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.665e-06/0.7696, allocations: 0 / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.7697, allocations: 0 / 1.028 GB, free: 10.23 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.001074/0.7707, allocations: 0.6042 MB / 1.028 GB, free: 9.574 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.7708, allocations: 11.98 kB / 1.028 GB, free: 9.562 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005872/0.7714, allocations: 87.47 kB / 1.028 GB, free: 9.477 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004089/0.7718, allocations: 290.2 kB / 1.028 GB, free: 9.152 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.502e-05/0.7718, allocations: 24.61 kB / 1.029 GB, free: 9.129 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.498e-05/0.7719, allocations: 27.98 kB / 1.029 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008007/0.7727, allocations: 493.8 kB / 1.029 GB, free: 8.59 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.7727, allocations: 7.938 kB / 1.029 GB, free: 8.582 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.037e-05/0.7728, allocations: 16 kB / 1.029 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.428e-05/0.7728, allocations: 36.64 kB / 1.029 GB, free: 8.527 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007661/0.7736, allocations: 386.2 kB / 1.029 GB, free: 8.152 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002482/0.7761, allocations: 2.048 MB / 1.031 GB, free: 5.902 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006291/0.7767, allocations: 238.6 kB / 1.032 GB, free: 5.66 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.435e-05/0.7768, allocations: 7.953 kB / 1.032 GB, free: 5.652 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.7768, allocations: 34.56 kB / 1.032 GB, free: 5.609 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=18): time 2.695e-06/0.7768, allocations: 0 / 1.032 GB, free: 5.609 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18): time 0.001188/0.778, allocations: 467.3 kB / 1.032 GB, free: 5.125 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.7781, allocations: 55.41 kB / 1.032 GB, free: 5.059 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002586/0.7783, allocations: 258.6 kB / 1.032 GB, free: 4.797 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.534e-05/0.7784, allocations: 29.7 kB / 1.032 GB, free: 4.762 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.7785, allocations: 215.7 kB / 1.033 GB, free: 4.547 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.956e-05/0.7786, allocations: 63.09 kB / 1.033 GB, free: 4.484 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.315e-05/0.7786, allocations: 8 kB / 1.033 GB, free: 4.477 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001269/0.7788, allocations: 330.8 kB / 1.033 GB, free: 4.145 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002588/0.779, allocations: 104.5 kB / 1.033 GB, free: 4.039 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003268/0.7794, allocations: 218.7 kB / 1.033 GB, free: 3.777 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002813/0.7797, allocations: 133.6 kB / 1.034 GB, free: 3.648 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.7797, allocations: 4 kB / 1.034 GB, free: 3.645 MB / 0.7794 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007776/0.7805, allocations: 383.5 kB / 1.034 GB, free: 3.262 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006097/0.7811, allocations: 1.313 MB / 1.035 GB, free: 1.848 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.7811, allocations: 4 kB / 1.035 GB, free: 1.844 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002193/0.7813, allocations: 32.84 kB / 1.035 GB, free: 1.809 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003148/0.7816, allocations: 75.89 kB / 1.035 GB, free: 1.734 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/0.7832, allocations: 1.335 MB / 1.037 GB, free: 272 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002932/0.7835, allocations: 47.92 kB / 1.037 GB, free: 224 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.405e-05/0.7835, allocations: 19.94 kB / 1.037 GB, free: 204 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.897e-06/0.7836, allocations: 4 kB / 1.037 GB, free: 200 kB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006782/0.7842, allocations: 307.8 kB / 1.037 GB, free: 15.89 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.7843, allocations: 4 kB / 1.037 GB, free: 15.89 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.945e-06/0.7843, allocations: 8 kB / 1.037 GB, free: 15.88 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002931/0.7846, allocations: 75.89 kB / 1.037 GB, free: 15.81 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.7846, allocations: 4 kB / 1.037 GB, free: 15.8 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002369/0.7848, allocations: 51.69 kB / 1.037 GB, free: 15.75 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.7849, allocations: 16 kB / 1.037 GB, free: 15.74 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002669/0.7851, allocations: 249.6 kB / 1.037 GB, free: 15.49 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.971e-05/0.7852, allocations: 31.64 kB / 1.037 GB, free: 15.46 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.992e-05/0.7853, allocations: 30.19 kB / 1.037 GB, free: 15.43 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.7853, allocations: 0 / 1.037 GB, free: 15.43 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.7853, allocations: 4 kB / 1.037 GB, free: 15.43 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.7853, allocations: 3.984 kB / 1.037 GB, free: 15.42 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004425/0.7858, allocations: 357.4 kB / 1.038 GB, free: 15.02 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.7858, allocations: 4 kB / 1.038 GB, free: 15.02 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001999/0.786, allocations: 39.97 kB / 1.038 GB, free: 14.98 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001166/0.7861, allocations: 24.84 kB / 1.038 GB, free: 14.95 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/0.7861, allocations: 4 kB / 1.038 GB, free: 14.95 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001043/0.7872, allocations: 1.323 MB / 1.039 GB, free: 13.5 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.7872, allocations: 0 / 1.039 GB, free: 13.5 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007041/0.7879, allocations: 388.8 kB / 1.039 GB, free: 13.1 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/0.788, allocations: 116.8 kB / 1.04 GB, free: 12.96 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.033e-05/0.7881, allocations: 4 kB / 1.04 GB, free: 12.96 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001877/0.7883, allocations: 19.97 kB / 1.04 GB, free: 12.94 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.108e-05/0.7883, allocations: 15.98 kB / 1.04 GB, free: 12.93 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.7884, allocations: 8 kB / 1.04 GB, free: 12.92 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.000181/0.7885, allocations: 189.9 kB / 1.04 GB, free: 12.73 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7886, allocations: 0 / 1.04 GB, free: 12.73 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005934/0.7892, allocations: 143.4 kB / 1.04 GB, free: 12.59 MB / 0.795 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001263/0.7893, allocations: 103.2 kB / 1.04 GB, free: 12.48 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001065/0.7904, allocations: 0.5191 MB / 1.041 GB, free: 11.95 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.7904, allocations: 320 / 1.041 GB, free: 11.95 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003604/0.7907, allocations: 227.8 kB / 1.041 GB, free: 11.72 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004039/0.7912, allocations: 71.81 kB / 1.041 GB, free: 11.65 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009391/0.7921, allocations: 0.6466 MB / 1.041 GB, free: 10.98 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004207/0.7925, allocations: 0.8149 MB / 1.042 GB, free: 10.14 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002308/0.7928, allocations: 74.2 kB / 1.042 GB, free: 10.06 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.406e-05/0.7928, allocations: 23.44 kB / 1.042 GB, free: 10.04 MB / 0.795 GB Notification: Performance of SimCode: time 4.61e-07/0.7928, allocations: 0 / 1.042 GB, free: 10.04 MB / 0.795 GB Notification: Performance of Templates: time 0.00696/0.7998, allocations: 3.053 MB / 1.045 GB, free: 7.016 MB / 0.795 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","../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches