Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008384/0.0008385, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 185.1 kB / 16.92 MB, free: 6.922 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: 223.3 MB / 241 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.419/2.419, allocations: 390.9 MB / 0.667 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000361/0.0003611, allocations: 11.98 kB / 0.8166 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6834/0.6838, allocations: 142.4 MB / 0.9557 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.004496/0.6884, allocations: 3.753 MB / 0.9594 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002568/0.691, allocations: 1.561 MB / 0.9609 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002949/0.6913, allocations: 6.875 kB / 0.9609 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003051/0.6916, allocations: 71.67 kB / 0.961 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0006701/0.6923, allocations: 211.2 kB / 0.9612 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006276/0.6929, allocations: 204.2 kB / 0.9614 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0009255/0.6939, allocations: 0.7689 MB / 0.9621 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006007/0.6945, allocations: 441.1 kB / 0.9625 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003837/0.6949, allocations: 183.4 kB / 0.9627 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005442/0.6954, allocations: 237.1 kB / 0.9629 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.458e-05/0.6955, allocations: 18.38 kB / 0.963 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004266/0.696, allocations: 198.9 kB / 0.9631 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001665/0.6961, allocations: 129.8 kB / 0.9633 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002961/0.6964, allocations: 199.1 kB / 0.9635 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005158/0.697, allocations: 402.5 kB / 0.9638 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.697, allocations: 4 kB / 0.9638 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.424e-06/0.697, allocations: 0 / 0.9638 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.98e-05/0.697, allocations: 0 / 0.9638 GB, free: 1.703 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001336/0.6984, allocations: 0.6202 MB / 0.9645 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.6984, allocations: 13.44 kB / 0.9645 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008672/0.6993, allocations: 109.4 kB / 0.9646 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004596/0.6998, allocations: 296.7 kB / 0.9649 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.619e-05/0.6999, allocations: 59.39 kB / 0.9649 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.218e-05/0.6999, allocations: 33.62 kB / 0.9649 GB, free: 0.7695 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009072/0.7008, allocations: 0.5074 MB / 0.9654 GB, free: 464 kB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.7009, allocations: 4.969 kB / 0.9654 GB, free: 460 kB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.148e-05/0.7009, allocations: 14.91 kB / 0.9655 GB, free: 448 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-05/0.701, allocations: 32.3 kB / 0.9655 GB, free: 436 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007807/0.7018, allocations: 395.3 kB / 0.9659 GB, free: 248 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002885/0.7047, allocations: 2.218 MB / 0.968 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007555/0.7054, allocations: 266.2 kB / 0.9683 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004187/0.7059, allocations: 157.7 kB / 0.9684 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.053e-05/0.7059, allocations: 6.141 kB / 0.9684 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.706, allocations: 40.47 kB / 0.9685 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=19): time 2.224e-06/0.706, allocations: 0 / 0.9685 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19): time 0.001671/0.7076, allocations: 0.5913 MB / 0.9691 GB, free: 13.48 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.994e-05/0.7077, allocations: 61.41 kB / 0.9691 GB, free: 13.41 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000276/0.708, allocations: 223.7 kB / 0.9693 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.001e-05/0.708, allocations: 27.67 kB / 0.9694 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.7082, allocations: 214.9 kB / 0.9696 GB, free: 13.02 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.823e-05/0.7082, allocations: 59.42 kB / 0.9696 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.129e-05/0.7083, allocations: 28.36 kB / 0.9696 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.7084, allocations: 328.1 kB / 0.97 GB, free: 12.61 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00024/0.7087, allocations: 103.9 kB / 0.9701 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003004/0.709, allocations: 185.6 kB / 0.9702 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005339/0.7095, allocations: 284.5 kB / 0.9705 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.7096, allocations: 5.062 kB / 0.9705 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009774/0.7105, allocations: 392.6 kB / 0.9709 GB, free: 11.99 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001153/0.7107, allocations: 164.4 kB / 0.971 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.7107, allocations: 2.031 kB / 0.971 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005511/0.7112, allocations: 113.3 kB / 0.9711 GB, free: 11.74 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000232/0.7115, allocations: 48.19 kB / 0.9712 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003338/0.7148, allocations: 2.835 MB / 0.974 GB, free: 8.91 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003518/0.7152, allocations: 34.11 kB / 0.974 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.407e-05/0.7153, allocations: 16.72 kB / 0.974 GB, free: 8.883 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 9.779e-06/0.7153, allocations: 3.75 kB / 0.974 GB, free: 8.883 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008694/0.7162, allocations: 316.2 kB / 0.9743 GB, free: 8.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.7162, allocations: 2.594 kB / 0.9743 GB, free: 8.73 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003453/0.7165, allocations: 87.61 kB / 0.9744 GB, free: 8.684 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002346/0.7168, allocations: 54.44 kB / 0.9745 GB, free: 8.672 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001944/0.7187, allocations: 1.501 MB / 0.9759 GB, free: 7.223 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002959/0.719, allocations: 28.64 kB / 0.9759 GB, free: 7.207 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.228e-05/0.7191, allocations: 12.62 kB / 0.976 GB, free: 7.203 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002864/0.7194, allocations: 247.8 kB / 0.9762 GB, free: 6.977 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.916e-05/0.7195, allocations: 22.69 kB / 0.9762 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.524e-05/0.7195, allocations: 31.36 kB / 0.9762 GB, free: 6.941 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.7195, allocations: 6.156 kB / 0.9763 GB, free: 6.938 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.7196, allocations: 1.156 kB / 0.9763 GB, free: 6.938 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.7196, allocations: 0 / 0.9763 GB, free: 6.938 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001603/0.7212, allocations: 0.85 MB / 0.9771 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.7212, allocations: 1.031 kB / 0.9771 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001518/0.7214, allocations: 30.2 kB / 0.9771 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004143/0.7218, allocations: 104.9 kB / 0.9772 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.774e-05/0.7218, allocations: 5.375 kB / 0.9772 GB, free: 6.188 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002866/0.7247, allocations: 2.802 MB / 0.98 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.7247, allocations: 1 kB / 0.98 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008631/0.7256, allocations: 427.8 kB / 0.9804 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001395/0.7257, allocations: 121.9 kB / 0.9805 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.559e-05/0.7258, allocations: 1.312 kB / 0.9805 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001851/0.726, allocations: 16.14 kB / 0.9805 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.72e-05/0.7261, allocations: 29.05 kB / 0.9805 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.7261, allocations: 8.328 kB / 0.9805 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001728/0.7263, allocations: 159.8 kB / 0.9807 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7263, allocations: 0 / 0.9807 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007484/0.727, allocations: 168.2 kB / 0.9808 GB, free: 2.77 MB / 0.7325 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001362/0.7272, allocations: 105.5 kB / 0.9809 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002052/0.7292, allocations: 0.7799 MB / 0.9817 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.7292, allocations: 0 / 0.9817 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000807/0.7301, allocations: 381.5 kB / 0.9821 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005099/0.7306, allocations: 50.66 kB / 0.9821 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/0.7319, allocations: 0.7779 MB / 0.9829 GB, free: 1.215 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004284/0.7323, allocations: 0.8142 MB / 0.9837 GB, free: 460 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.286e-05/0.7324, allocations: 24.25 kB / 0.9837 GB, free: 448 kB / 0.7325 GB Notification: Performance of SimCode: time 4.81e-07/0.7324, allocations: 0 / 0.9837 GB, free: 448 kB / 0.7325 GB Notification: Performance of Templates: time 0.009735/0.7421, allocations: 6.108 MB / 0.9897 GB, free: 11.04 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches