Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Resistor,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Loads_Examples_Resistor",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.001083/0.001083, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001084/0.001084, allocations: 192.4 kB / 16.25 MB, free: 6.633 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.24/1.24, allocations: 222.9 MB / 239.9 MB, free: 4.543 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.279/2.279, allocations: 437.1 MB / 0.7101 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 71.88 kB / 0.8689 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5213/0.5225, allocations: 151.6 MB / 1.017 GB, free: 2.723 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004564/0.5271, allocations: 3.891 MB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001998/0.5292, allocations: 1.706 MB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.5293, allocations: 7.938 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.5304, allocations: 470.5 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003397/0.5307, allocations: 211.1 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003611/0.5311, allocations: 199.4 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000383/0.5315, allocations: 474.4 kB / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004828/0.532, allocations: 403.4 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001596/0.5322, allocations: 195.3 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002796/0.5324, allocations: 223.2 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.756e-05/0.5325, allocations: 28 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002857/0.5328, allocations: 247.4 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.7e-05/0.5329, allocations: 123.7 kB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001303/0.533, allocations: 175.2 kB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004426/0.5335, allocations: 0.51 MB / 1.026 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.5335, allocations: 4 kB / 1.026 GB, free: 9.887 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.232e-06/0.5335, allocations: 4 kB / 1.026 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.748e-06/0.5335, allocations: 0 / 1.026 GB, free: 9.883 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0007858/0.5343, allocations: 0.6407 MB / 1.026 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 2.848e-05/0.5343, allocations: 8.031 kB / 1.026 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.487e-05/0.5344, allocations: 74.66 kB / 1.026 GB, free: 9.105 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008011/0.5352, allocations: 132.4 kB / 1.026 GB, free: 8.977 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002856/0.5355, allocations: 296.2 kB / 1.027 GB, free: 8.648 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.5355, allocations: 17.03 kB / 1.027 GB, free: 8.633 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.598e-05/0.5356, allocations: 28.38 kB / 1.027 GB, free: 8.605 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005489/0.5361, allocations: 467.7 kB / 1.027 GB, free: 8.109 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.5361, allocations: 0 / 1.027 GB, free: 8.109 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.033e-05/0.5362, allocations: 12 kB / 1.027 GB, free: 8.098 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.74e-05/0.5362, allocations: 28.55 kB / 1.027 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004112/0.5366, allocations: 321.9 kB / 1.027 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001716/0.5384, allocations: 2.193 MB / 1.03 GB, free: 5.352 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002985/0.5387, allocations: 251.8 kB / 1.03 GB, free: 5.078 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002008/0.5389, allocations: 108.7 kB / 1.03 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.045e-05/0.5389, allocations: 0 / 1.03 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.5389, allocations: 42.56 kB / 1.03 GB, free: 4.918 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 9.31e-07/0.5389, allocations: 0 / 1.03 GB, free: 4.918 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0004809/0.5394, allocations: 295.5 kB / 1.03 GB, free: 4.602 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.498e-05/0.5395, allocations: 59.34 kB / 1.03 GB, free: 4.531 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002187/0.5397, allocations: 266.6 kB / 1.031 GB, free: 4.266 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.5397, allocations: 29.7 kB / 1.031 GB, free: 4.23 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.567e-05/0.5398, allocations: 211.8 kB / 1.031 GB, free: 4.02 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.963e-05/0.5398, allocations: 47.3 kB / 1.031 GB, free: 3.973 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.282e-05/0.5399, allocations: 53.84 kB / 1.031 GB, free: 3.91 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.693e-05/0.54, allocations: 330.8 kB / 1.031 GB, free: 3.578 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.727e-05/0.5401, allocations: 64.42 kB / 1.031 GB, free: 3.516 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.5402, allocations: 145.2 kB / 1.031 GB, free: 3.336 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002111/0.5404, allocations: 213.5 kB / 1.032 GB, free: 3.09 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.5404, allocations: 4 kB / 1.032 GB, free: 3.086 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003463/0.5408, allocations: 266 kB / 1.032 GB, free: 2.816 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.5408, allocations: 7.938 kB / 1.032 GB, free: 2.809 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.5408, allocations: 4 kB / 1.032 GB, free: 2.805 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001212/0.541, allocations: 29.22 kB / 1.032 GB, free: 2.773 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001649/0.5411, allocations: 51.91 kB / 1.032 GB, free: 2.723 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008485/0.542, allocations: 1.426 MB / 1.033 GB, free: 1.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001472/0.5421, allocations: 31.59 kB / 1.033 GB, free: 1.129 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.341e-05/0.5422, allocations: 8 kB / 1.033 GB, free: 1.121 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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): 26 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001278/0.5423, allocations: 169.8 kB / 1.034 GB, free: 0.9453 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.045e-05/0.5423, allocations: 19.81 kB / 1.034 GB, free: 0.9258 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.62e-05/0.5424, allocations: 33.83 kB / 1.034 GB, free: 0.8867 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.5424, allocations: 3.984 kB / 1.034 GB, free: 0.8828 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-06/0.5424, allocations: 4 kB / 1.034 GB, free: 0.8789 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.5424, allocations: 0 / 1.034 GB, free: 0.8789 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007206/0.5431, allocations: 0.7063 MB / 1.034 GB, free: 84 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.5431, allocations: 0 / 1.034 GB, free: 84 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.738e-05/0.5432, allocations: 20 kB / 1.034 GB, free: 64 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.251e-05/0.5433, allocations: 32.95 kB / 1.034 GB, free: 28 kB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.5433, allocations: 4 kB / 1.034 GB, free: 24 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007819/0.5441, allocations: 1.414 MB / 1.036 GB, free: 14.47 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.5441, allocations: 4.031 kB / 1.036 GB, free: 14.46 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002697/0.5444, allocations: 318.1 kB / 1.036 GB, free: 14.12 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 8.143e-05/0.5445, allocations: 112.8 kB / 1.036 GB, free: 13.99 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.843e-05/0.5445, allocations: 8 kB / 1.036 GB, free: 13.98 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.5447, allocations: 4 kB / 1.036 GB, free: 13.98 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.807e-05/0.5447, allocations: 27.86 kB / 1.036 GB, free: 13.95 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.287e-06/0.5447, allocations: 4 kB / 1.036 GB, free: 13.95 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001493/0.5449, allocations: 194 kB / 1.036 GB, free: 13.76 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5449, allocations: 0 / 1.036 GB, free: 13.76 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003385/0.5452, allocations: 75.84 kB / 1.036 GB, free: 13.68 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004675/0.5457, allocations: 0.8517 MB / 1.037 GB, free: 12.79 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003615/0.5461, allocations: 282.4 kB / 1.038 GB, free: 12.5 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.5461, allocations: 4 kB / 1.038 GB, free: 12.49 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.5463, allocations: 179.7 kB / 1.038 GB, free: 12.3 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004094/0.5467, allocations: 64.06 kB / 1.038 GB, free: 12.25 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00244/0.5491, allocations: 2.843 MB / 1.041 GB, free: 9.211 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.5494, allocations: 0.7909 MB / 1.041 GB, free: 8.395 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001311/0.5496, allocations: 46.25 kB / 1.041 GB, free: 8.348 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.5497, allocations: 83.41 kB / 1.041 GB, free: 8.266 MB / 0.795 GB Notification: Performance of SimCode: time 2.51e-07/0.5497, allocations: 0 / 1.041 GB, free: 8.266 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.132/1.682, allocations: 5.195 MB / 1.047 GB, free: 3.234 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002585/1.682, allocations: 218.5 kB / 1.047 GB, free: 2.984 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.664/3.347, allocations: 0 / 1.047 GB, free: 2.984 MB / 0.795 GB (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches