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.007976/0.007976, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001823/0.001823, allocations: 195.2 kB / 16.67 MB, free: 5.52 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.431/2.431, allocations: 437 MB / 0.7105 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 68.12 kB / 1.018 GB, free: 9.949 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8357/0.8376, allocations: 151.6 MB / 1.166 GB, free: 3.809 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005264/0.8429, allocations: 3.835 MB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002665/0.8456, allocations: 1.729 MB / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/0.8458, allocations: 11.94 kB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001325/0.8472, allocations: 0.4903 MB / 1.172 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0005109/0.8477, allocations: 230.8 kB / 1.172 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005016/0.8482, allocations: 204.5 kB / 1.172 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0004736/0.8487, allocations: 478.4 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005306/0.8493, allocations: 363.4 kB / 1.173 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002089/0.8495, allocations: 199.3 kB / 1.173 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003554/0.8498, allocations: 211.2 kB / 1.174 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 4.85e-05/0.8499, allocations: 28 kB / 1.174 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003992/0.8503, allocations: 251.4 kB / 1.174 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.8504, allocations: 127.7 kB / 1.174 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001589/0.8506, allocations: 167.2 kB / 1.174 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.000563/0.8512, allocations: 0.5023 MB / 1.175 GB, free: 11 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.8512, allocations: 0 / 1.175 GB, free: 11 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.483e-06/0.8512, allocations: 4 kB / 1.175 GB, free: 10.99 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 6.572e-06/0.8512, allocations: 0 / 1.175 GB, free: 10.99 MB / 0.9044 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.001018/0.8522, allocations: 0.6277 MB / 1.175 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.8523, allocations: 16.91 kB / 1.175 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.334e-05/0.8524, allocations: 66.67 kB / 1.175 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008686/0.8532, allocations: 132.4 kB / 1.176 GB, free: 10.1 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003904/0.8536, allocations: 295.6 kB / 1.176 GB, free: 9.77 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.8537, allocations: 21.03 kB / 1.176 GB, free: 9.75 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.321e-05/0.8537, allocations: 28.38 kB / 1.176 GB, free: 9.723 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006325/0.8544, allocations: 463.7 kB / 1.176 GB, free: 9.23 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.8544, allocations: 4 kB / 1.176 GB, free: 9.227 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.294e-05/0.8544, allocations: 12 kB / 1.176 GB, free: 9.215 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.791e-05/0.8545, allocations: 32.55 kB / 1.176 GB, free: 9.184 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004935/0.855, allocations: 321.9 kB / 1.177 GB, free: 8.871 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002179/0.8572, allocations: 2.185 MB / 1.179 GB, free: 6.473 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003935/0.8576, allocations: 253.4 kB / 1.179 GB, free: 6.199 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002394/0.8578, allocations: 108.7 kB / 1.179 GB, free: 6.09 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.8579, allocations: 4 kB / 1.179 GB, free: 6.086 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.8579, allocations: 30.56 kB / 1.179 GB, free: 6.047 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=14): time 1.863e-06/0.8579, allocations: 0 / 1.179 GB, free: 6.047 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14): time 0.0006332/0.8585, allocations: 303.5 kB / 1.179 GB, free: 5.723 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.8586, allocations: 59.34 kB / 1.18 GB, free: 5.652 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002929/0.8589, allocations: 266.5 kB / 1.18 GB, free: 5.391 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.8589, allocations: 33.7 kB / 1.18 GB, free: 5.352 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.8591, allocations: 203.8 kB / 1.18 GB, free: 5.148 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.324e-05/0.8591, allocations: 59.31 kB / 1.18 GB, free: 5.09 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.49e-05/0.8592, allocations: 49.88 kB / 1.18 GB, free: 5.031 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001391/0.8594, allocations: 338.8 kB / 1.18 GB, free: 4.691 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.834e-05/0.8595, allocations: 56.44 kB / 1.18 GB, free: 4.637 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.8596, allocations: 140.1 kB / 1.181 GB, free: 4.461 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002559/0.8599, allocations: 221.9 kB / 1.181 GB, free: 4.207 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.8599, allocations: 4 kB / 1.181 GB, free: 4.203 MB / 0.9044 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004042/0.8603, allocations: 261.8 kB / 1.181 GB, free: 3.938 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.8603, allocations: 8 kB / 1.181 GB, free: 3.93 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.8604, allocations: 4.375 kB / 1.181 GB, free: 3.926 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001607/0.8605, allocations: 28.84 kB / 1.181 GB, free: 3.895 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001848/0.8607, allocations: 51.91 kB / 1.181 GB, free: 3.844 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001092/0.8618, allocations: 1.422 MB / 1.183 GB, free: 2.277 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.862, allocations: 27.69 kB / 1.183 GB, free: 2.25 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.862, allocations: 12 kB / 1.183 GB, free: 2.238 MB / 0.9044 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.0001778/0.8622, allocations: 169.8 kB / 1.183 GB, free: 2.062 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.042e-05/0.8623, allocations: 23.72 kB / 1.183 GB, free: 2.039 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.456e-05/0.8623, allocations: 29.83 kB / 1.183 GB, free: 2.004 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.8623, allocations: 0 / 1.183 GB, free: 2.004 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.8623, allocations: 0 / 1.183 GB, free: 2.004 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.8623, allocations: 0 / 1.183 GB, free: 2.004 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009841/0.8633, allocations: 0.7063 MB / 1.183 GB, free: 1.207 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.8634, allocations: 4 kB / 1.183 GB, free: 1.203 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.436e-05/0.8635, allocations: 23.98 kB / 1.184 GB, free: 1.18 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.559e-05/0.8636, allocations: 24.78 kB / 1.184 GB, free: 1.152 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.917e-05/0.8636, allocations: 11.98 kB / 1.184 GB, free: 1.141 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001047/0.8646, allocations: 1.41 MB / 1.185 GB, free: 15.59 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.8647, allocations: 0 / 1.185 GB, free: 15.59 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00038/0.865, allocations: 317.1 kB / 1.185 GB, free: 15.24 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.8652, allocations: 112.8 kB / 1.185 GB, free: 15.11 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.719e-05/0.8652, allocations: 8 kB / 1.185 GB, free: 15.11 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.8654, allocations: 8 kB / 1.185 GB, free: 15.1 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.306e-05/0.8654, allocations: 19.86 kB / 1.185 GB, free: 15.08 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.8654, allocations: 8 kB / 1.185 GB, free: 15.07 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001903/0.8656, allocations: 197.9 kB / 1.186 GB, free: 14.88 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8656, allocations: 96 / 1.186 GB, free: 14.88 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0004174/0.8661, allocations: 83.62 kB / 1.186 GB, free: 14.8 MB / 0.92 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.0006387/0.8667, allocations: 0.8532 MB / 1.186 GB, free: 13.89 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0004977/0.8672, allocations: 281.2 kB / 1.187 GB, free: 13.61 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.8672, allocations: 0 / 1.187 GB, free: 13.61 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0002027/0.8674, allocations: 178.6 kB / 1.187 GB, free: 13.42 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004945/0.8679, allocations: 61 kB / 1.187 GB, free: 13.37 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003136/0.8711, allocations: 2.72 MB / 1.19 GB, free: 10.46 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/0.8715, allocations: 0.7948 MB / 1.19 GB, free: 9.641 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001575/0.8716, allocations: 38.27 kB / 1.19 GB, free: 9.602 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.8718, allocations: 83.41 kB / 1.191 GB, free: 9.52 MB / 0.92 GB Notification: Performance of SimCode: time 4.01e-07/0.8718, allocations: 0 / 1.191 GB, free: 9.52 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02963/0.9014, allocations: 5.377 MB / 1.196 GB, free: 4.277 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.654/10.56, allocations: 19.73 kB / 1.196 GB, free: 4.262 MB / 0.92 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