Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.VariableLoad,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Loads_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.VariableLoad,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Loads_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00178/0.00178, allocations: 108 kB / 15.61 MB, free: 152 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.002004/0.002004, allocations: 195.1 kB / 16.53 MB, free: 6.699 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.376/1.376, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.549/2.549, allocations: 437.1 MB / 0.7104 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 59.91 kB / 0.8693 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6092/0.6106, allocations: 151.6 MB / 1.017 GB, free: 2.5 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.005618/0.6162, allocations: 3.867 MB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002658/0.6189, allocations: 1.776 MB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001747/0.6191, allocations: 7.938 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.00125/0.6204, allocations: 442.3 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005385/0.6209, allocations: 242.8 kB / 1.024 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005867/0.6215, allocations: 255.1 kB / 1.024 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004664/0.622, allocations: 0.4906 MB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005391/0.6226, allocations: 367.1 kB / 1.025 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001994/0.6228, allocations: 191.3 kB / 1.025 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003384/0.6231, allocations: 239.2 kB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.271e-05/0.6232, allocations: 28 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003022/0.6235, allocations: 183.6 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.6236, allocations: 139.6 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001701/0.6238, allocations: 179.1 kB / 1.026 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004957/0.6243, allocations: 494.4 kB / 1.026 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.6243, allocations: 0 / 1.026 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.152e-06/0.6243, allocations: 0 / 1.026 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.6244, allocations: 0 / 1.026 GB, free: 9.629 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.001038/0.6254, allocations: 0.6588 MB / 1.027 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.6254, allocations: 8.031 kB / 1.027 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.942e-05/0.6255, allocations: 74.66 kB / 1.027 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000543/0.6261, allocations: 88.39 kB / 1.027 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003564/0.6264, allocations: 287.6 kB / 1.027 GB, free: 8.426 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/0.6265, allocations: 25.02 kB / 1.027 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.518e-05/0.6265, allocations: 28.38 kB / 1.027 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007561/0.6273, allocations: 489.8 kB / 1.028 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.6273, allocations: 0 / 1.028 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.78e-05/0.6274, allocations: 19.97 kB / 1.028 GB, free: 7.848 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.898e-05/0.6274, allocations: 36.64 kB / 1.028 GB, free: 7.809 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007357/0.6282, allocations: 370.2 kB / 1.028 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002416/0.6306, allocations: 2.037 MB / 1.03 GB, free: 5.207 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005854/0.6312, allocations: 210.8 kB / 1.03 GB, free: 4.992 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003829/0.6316, allocations: 156.8 kB / 1.03 GB, free: 4.836 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.6316, allocations: 7.938 kB / 1.03 GB, free: 4.828 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/0.6317, allocations: 42.55 kB / 1.03 GB, free: 4.777 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=18): time 2.315e-06/0.6317, allocations: 4 kB / 1.03 GB, free: 4.773 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18): time 0.001133/0.6328, allocations: 416.3 kB / 1.031 GB, free: 4.34 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.197e-05/0.6329, allocations: 55.41 kB / 1.031 GB, free: 4.273 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002527/0.6331, allocations: 262.6 kB / 1.031 GB, free: 4.004 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.6332, allocations: 29.7 kB / 1.031 GB, free: 3.969 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.6333, allocations: 207.7 kB / 1.031 GB, free: 3.762 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.873e-05/0.6334, allocations: 67.09 kB / 1.031 GB, free: 3.695 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.79e-05/0.6335, allocations: 57.89 kB / 1.031 GB, free: 3.629 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.6336, allocations: 338.8 kB / 1.032 GB, free: 3.289 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002522/0.6338, allocations: 101.9 kB / 1.032 GB, free: 3.188 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003085/0.6342, allocations: 203.6 kB / 1.032 GB, free: 2.938 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005603/0.6347, allocations: 310.2 kB / 1.032 GB, free: 2.586 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.6347, allocations: 4 kB / 1.032 GB, free: 2.582 MB / 0.7794 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007719/0.6355, allocations: 355.8 kB / 1.033 GB, free: 2.227 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.6356, allocations: 8.469 kB / 1.033 GB, free: 2.219 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.6356, allocations: 8 kB / 1.033 GB, free: 2.211 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001939/0.6358, allocations: 28.83 kB / 1.033 GB, free: 2.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002902/0.6361, allocations: 75.78 kB / 1.033 GB, free: 2.105 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001223/0.6373, allocations: 1.445 MB / 1.034 GB, free: 0.5234 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002627/0.6376, allocations: 39.67 kB / 1.034 GB, free: 496 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.324e-05/0.6376, allocations: 16 kB / 1.034 GB, free: 480 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003447/0.638, allocations: 216.6 kB / 1.035 GB, free: 260 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003129/0.6383, allocations: 214.4 kB / 1.035 GB, free: 15.99 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005402/0.6388, allocations: 323.1 kB / 1.035 GB, free: 15.62 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.354e-06/0.6388, allocations: 0 / 1.035 GB, free: 15.62 MB / 0.795 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006779/0.6395, allocations: 332.8 kB / 1.035 GB, free: 15.29 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.6395, allocations: 8 kB / 1.035 GB, free: 15.28 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.6396, allocations: 4 kB / 1.035 GB, free: 15.27 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.275e-06/0.6396, allocations: 8 kB / 1.035 GB, free: 15.27 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002784/0.6399, allocations: 76.3 kB / 1.035 GB, free: 15.19 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.6399, allocations: 8 kB / 1.035 GB, free: 15.18 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002641/0.6401, allocations: 39.67 kB / 1.035 GB, free: 15.14 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.924e-05/0.6402, allocations: 12 kB / 1.035 GB, free: 15.13 MB / 0.795 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.0001283/0.6403, allocations: 200.8 kB / 1.036 GB, free: 14.93 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.625e-05/0.6404, allocations: 27.72 kB / 1.036 GB, free: 14.9 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.548e-05/0.6404, allocations: 30.17 kB / 1.036 GB, free: 14.88 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.6404, allocations: 4 kB / 1.036 GB, free: 14.87 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.6404, allocations: 8 kB / 1.036 GB, free: 14.86 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.6405, allocations: 0 / 1.036 GB, free: 14.86 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001201/0.6417, allocations: 0.759 MB / 1.036 GB, free: 14.03 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.6417, allocations: 0 / 1.036 GB, free: 14.03 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000241/0.6419, allocations: 43.91 kB / 1.037 GB, free: 13.98 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001188/0.6421, allocations: 24.84 kB / 1.037 GB, free: 13.96 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.6421, allocations: 4 kB / 1.037 GB, free: 13.95 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00105/0.6431, allocations: 1.418 MB / 1.038 GB, free: 12.39 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.6432, allocations: 4.031 kB / 1.038 GB, free: 12.39 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006509/0.6438, allocations: 369.6 kB / 1.038 GB, free: 12 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.6439, allocations: 120.7 kB / 1.038 GB, free: 11.87 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.985e-05/0.644, allocations: 4 kB / 1.038 GB, free: 11.86 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/0.6442, allocations: 23.86 kB / 1.038 GB, free: 11.84 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.573e-05/0.6443, allocations: 23.91 kB / 1.038 GB, free: 11.82 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-05/0.6443, allocations: 4 kB / 1.038 GB, free: 11.81 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001722/0.6445, allocations: 182 kB / 1.039 GB, free: 11.63 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6445, allocations: 0 / 1.039 GB, free: 11.63 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000632/0.6451, allocations: 151.5 kB / 1.039 GB, free: 11.48 MB / 0.795 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.0009019/0.646, allocations: 0.8962 MB / 1.04 GB, free: 10.55 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00111/0.6472, allocations: 0.5019 MB / 1.04 GB, free: 10.04 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.6472, allocations: 0 / 1.04 GB, free: 10.04 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003544/0.6475, allocations: 222.8 kB / 1.04 GB, free: 9.812 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005563/0.6481, allocations: 79.16 kB / 1.04 GB, free: 9.742 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004041/0.6521, allocations: 2.867 MB / 1.043 GB, free: 6.684 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003981/0.6526, allocations: 0.8074 MB / 1.044 GB, free: 5.852 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002501/0.6528, allocations: 66.23 kB / 1.044 GB, free: 5.785 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/0.653, allocations: 95.39 kB / 1.044 GB, free: 5.691 MB / 0.795 GB Notification: Performance of SimCode: time 6.41e-07/0.653, allocations: 0 / 1.044 GB, free: 5.691 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04159/0.6946, allocations: 6.197 MB / 1.05 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.5/11.2, allocations: 11.56 kB / 1.05 GB, free: 15.63 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Electrical_DC_Loads_Examples_VariableLoad.fmu > Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches