Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.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_latest_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_latest_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.001515/0.001515, allocations: 109.8 kB / 16.27 MB, free: 5.984 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.001516/0.001516, allocations: 193.3 kB / 17.2 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.346/1.346, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.71/2.71, allocations: 482.4 MB / 0.7553 GB, free: 6.992 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 71.92 kB / 0.9245 GB, free: 15.99 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7832/0.7852, allocations: 162.2 MB / 1.083 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.005818/0.791, allocations: 4.099 MB / 1.087 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00291/0.794, allocations: 1.583 MB / 1.088 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000227/0.7942, allocations: 10.81 kB / 1.088 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001608/0.7959, allocations: 0.5924 MB / 1.089 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0005902/0.7965, allocations: 230.4 kB / 1.089 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005953/0.7971, allocations: 223.2 kB / 1.089 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0006304/0.7978, allocations: 0.5417 MB / 1.09 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007222/0.7985, allocations: 480.2 kB / 1.09 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002958/0.7988, allocations: 225.5 kB / 1.091 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004163/0.7992, allocations: 252.6 kB / 1.091 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.355e-05/0.7993, allocations: 35.16 kB / 1.091 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003553/0.7996, allocations: 166.5 kB / 1.091 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001771/0.7998, allocations: 147.8 kB / 1.091 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002254/0.8001, allocations: 193.6 kB / 1.091 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0006892/0.8008, allocations: 0.5235 MB / 1.092 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.8008, allocations: 0 / 1.092 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.553e-06/0.8008, allocations: 0 / 1.092 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.684e-06/0.8008, allocations: 1.219 kB / 1.092 GB, free: 12.15 MB / 0.8419 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.001313/0.8021, allocations: 0.6758 MB / 1.093 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.8022, allocations: 13.25 kB / 1.093 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007548/0.8029, allocations: 101.6 kB / 1.093 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004214/0.8034, allocations: 303.9 kB / 1.093 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.101e-05/0.8034, allocations: 51.67 kB / 1.093 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.633e-05/0.8035, allocations: 39 kB / 1.093 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008838/0.8044, allocations: 0.5078 MB / 1.094 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.8044, allocations: 0 / 1.094 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.334e-05/0.8045, allocations: 15.97 kB / 1.094 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.867e-05/0.8045, allocations: 32.94 kB / 1.094 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008104/0.8054, allocations: 378.1 kB / 1.094 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002681/0.8081, allocations: 2.206 MB / 1.096 GB, free: 9.047 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006979/0.8088, allocations: 263.5 kB / 1.096 GB, free: 8.945 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000384/0.8092, allocations: 147.9 kB / 1.097 GB, free: 8.902 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.789e-05/0.8092, allocations: 10.14 kB / 1.097 GB, free: 8.895 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.8092, allocations: 40.27 kB / 1.097 GB, free: 8.848 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=19): time 1.603e-06/0.8093, allocations: 0 / 1.097 GB, free: 8.848 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.001546/0.8108, allocations: 0.5699 MB / 1.097 GB, free: 8.508 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.8109, allocations: 52.88 kB / 1.097 GB, free: 8.445 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002635/0.8111, allocations: 227.4 kB / 1.097 GB, free: 8.301 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.45e-05/0.8112, allocations: 31.45 kB / 1.097 GB, free: 8.266 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.8113, allocations: 219.2 kB / 1.098 GB, free: 8.082 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.005e-05/0.8114, allocations: 61.69 kB / 1.098 GB, free: 8.035 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.435e-05/0.8115, allocations: 58.11 kB / 1.098 GB, free: 7.996 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.8116, allocations: 330.3 kB / 1.098 GB, free: 7.676 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000231/0.8119, allocations: 97.61 kB / 1.098 GB, free: 7.641 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002969/0.8122, allocations: 186.7 kB / 1.098 GB, free: 7.496 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005091/0.8127, allocations: 277.8 kB / 1.099 GB, free: 7.324 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.8127, allocations: 5.094 kB / 1.099 GB, free: 7.32 MB / 0.8419 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009404/0.8137, allocations: 374.8 kB / 1.099 GB, free: 7.164 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.8137, allocations: 5.406 kB / 1.099 GB, free: 7.164 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.8137, allocations: 3.547 kB / 1.099 GB, free: 7.164 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005286/0.8142, allocations: 107.2 kB / 1.099 GB, free: 7.133 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002205/0.8145, allocations: 48.39 kB / 1.099 GB, free: 7.129 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003501/0.818, allocations: 3.053 MB / 1.102 GB, free: 4.211 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002984/0.8183, allocations: 35.67 kB / 1.102 GB, free: 4.191 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/0.8183, allocations: 12.28 kB / 1.102 GB, free: 4.188 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003903/0.8187, allocations: 219 kB / 1.102 GB, free: 4.062 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002901/0.819, allocations: 181.2 kB / 1.103 GB, free: 3.922 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004869/0.8195, allocations: 270.2 kB / 1.103 GB, free: 3.754 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.194e-06/0.8195, allocations: 1.188 kB / 1.103 GB, free: 3.754 MB / 0.8419 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007884/0.8203, allocations: 348 kB / 1.103 GB, free: 3.613 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.8204, allocations: 13.66 kB / 1.103 GB, free: 3.609 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.247e-06/0.8204, allocations: 2.688 kB / 1.103 GB, free: 3.609 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000308/0.8207, allocations: 81.47 kB / 1.103 GB, free: 3.586 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002351/0.8209, allocations: 53.66 kB / 1.103 GB, free: 3.582 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002027/0.823, allocations: 1.611 MB / 1.105 GB, free: 2.109 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002695/0.8232, allocations: 31.23 kB / 1.105 GB, free: 2.094 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.8233, allocations: 17.31 kB / 1.105 GB, free: 2.086 MB / 0.8419 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.0001512/0.8234, allocations: 202.4 kB / 1.105 GB, free: 1.887 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.504e-05/0.8235, allocations: 19.38 kB / 1.105 GB, free: 1.879 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.242e-05/0.8236, allocations: 30.44 kB / 1.105 GB, free: 1.859 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.8236, allocations: 2.375 kB / 1.105 GB, free: 1.859 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.8236, allocations: 4 kB / 1.105 GB, free: 1.855 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.8236, allocations: 6.656 kB / 1.105 GB, free: 1.852 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001501/0.8251, allocations: 0.8253 MB / 1.106 GB, free: 1.293 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.788e-06/0.8251, allocations: 1.031 kB / 1.106 GB, free: 1.293 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001489/0.8253, allocations: 36.59 kB / 1.106 GB, free: 1.285 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003901/0.8257, allocations: 105.4 kB / 1.106 GB, free: 1.25 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.8257, allocations: 5.594 kB / 1.106 GB, free: 1.246 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003164/0.8289, allocations: 3.014 MB / 1.109 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.8289, allocations: 3.938 kB / 1.109 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008484/0.8297, allocations: 417.9 kB / 1.109 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001392/0.8299, allocations: 116.3 kB / 1.11 GB, free: 14 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.368e-05/0.8299, allocations: 14.95 kB / 1.11 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.8301, allocations: 11.02 kB / 1.11 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.394e-05/0.8302, allocations: 19.72 kB / 1.11 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.8302, allocations: 5.344 kB / 1.11 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000163/0.8304, allocations: 165.8 kB / 1.11 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.8304, allocations: 0 / 1.11 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000663/0.831, allocations: 174.1 kB / 1.11 GB, free: 13.83 MB / 0.8575 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.0001168/0.8312, allocations: 105.3 kB / 1.11 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001943/0.8331, allocations: 0.7755 MB / 1.111 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.8331, allocations: 1.375 kB / 1.111 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0007753/0.8339, allocations: 367.8 kB / 1.111 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004363/0.8344, allocations: 69.91 kB / 1.111 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.8355, allocations: 0.6278 MB / 1.112 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004767/0.836, allocations: 0.8098 MB / 1.113 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.311e-05/0.836, allocations: 24.47 kB / 1.113 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of SimCode: time 2.01e-07/0.8361, allocations: 1.312 kB / 1.113 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of Templates: time 0.009837/0.8459, allocations: 6.153 MB / 1.119 GB, free: 11.24 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches