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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0009303/0.0009304, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006961/0.006961, allocations: 170 kB / 16.26 MB, free: 6.613 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.249/1.249, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.412/2.412, allocations: 437.8 MB / 0.7121 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.000332, allocations: 8 kB / 0.8729 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5536/0.554, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.003881/0.5579, allocations: 3.498 MB / 1.027 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002195/0.5601, allocations: 1.714 MB / 1.028 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.5602, allocations: 4 kB / 1.028 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000178/0.5604, allocations: 59.5 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000441/0.5608, allocations: 207.1 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004105/0.5613, allocations: 199.6 kB / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005722/0.5618, allocations: 0.6661 MB / 1.029 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003702/0.5622, allocations: 315.9 kB / 1.03 GB, free: 9.141 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001559/0.5624, allocations: 151.3 kB / 1.03 GB, free: 8.992 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003095/0.5627, allocations: 207.2 kB / 1.03 GB, free: 8.789 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.143e-05/0.5628, allocations: 16 kB / 1.03 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003855/0.5631, allocations: 307.3 kB / 1.03 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.5633, allocations: 103.7 kB / 1.03 GB, free: 8.371 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.5634, allocations: 184.8 kB / 1.031 GB, free: 8.184 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004572/0.5639, allocations: 0.4927 MB / 1.031 GB, free: 7.691 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.5639, allocations: 0 / 1.031 GB, free: 7.691 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.975e-06/0.5639, allocations: 3.984 kB / 1.031 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.5639, allocations: 0 / 1.031 GB, free: 7.688 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.0007759/0.5647, allocations: 0.5809 MB / 1.032 GB, free: 7.059 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.5647, allocations: 8.031 kB / 1.032 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.313e-05/0.5648, allocations: 62.73 kB / 1.032 GB, free: 6.98 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008737/0.5657, allocations: 144.3 kB / 1.032 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003023/0.566, allocations: 292.2 kB / 1.032 GB, free: 6.516 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.566, allocations: 21.03 kB / 1.032 GB, free: 6.496 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.864e-05/0.5661, allocations: 24.38 kB / 1.032 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005901/0.5667, allocations: 471.7 kB / 1.033 GB, free: 5.973 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.5667, allocations: 0 / 1.033 GB, free: 5.973 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.336e-05/0.5667, allocations: 12 kB / 1.033 GB, free: 5.961 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-05/0.5668, allocations: 32.55 kB / 1.033 GB, free: 5.93 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004539/0.5672, allocations: 321.9 kB / 1.033 GB, free: 5.617 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001856/0.5691, allocations: 2.2 MB / 1.035 GB, free: 3.203 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003365/0.5694, allocations: 251.8 kB / 1.035 GB, free: 2.93 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002264/0.5697, allocations: 112.8 kB / 1.035 GB, free: 2.816 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.809e-06/0.5697, allocations: 4 kB / 1.035 GB, free: 2.812 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.225e-05/0.5697, allocations: 30.56 kB / 1.035 GB, free: 2.773 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.303e-06/0.5697, allocations: 4 kB / 1.035 GB, free: 2.77 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0005159/0.5703, allocations: 303.1 kB / 1.036 GB, free: 2.449 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.551e-05/0.5703, allocations: 51.41 kB / 1.036 GB, free: 2.387 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002552/0.5705, allocations: 266.5 kB / 1.036 GB, free: 2.121 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.5706, allocations: 33.64 kB / 1.036 GB, free: 2.082 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.5707, allocations: 211.7 kB / 1.036 GB, free: 1.871 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.528e-05/0.5707, allocations: 51.34 kB / 1.036 GB, free: 1.82 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.541e-05/0.5708, allocations: 29.7 kB / 1.036 GB, free: 1.785 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.5709, allocations: 334.8 kB / 1.037 GB, free: 1.449 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.221e-05/0.571, allocations: 52.44 kB / 1.037 GB, free: 1.395 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001342/0.5711, allocations: 149.4 kB / 1.037 GB, free: 1.211 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002434/0.5714, allocations: 228.9 kB / 1.037 GB, free: 0.9492 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.5714, allocations: 3.938 kB / 1.037 GB, free: 0.9453 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003739/0.5718, allocations: 254 kB / 1.037 GB, free: 0.6875 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.5718, allocations: 8 kB / 1.037 GB, free: 0.6797 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.5718, allocations: 8 kB / 1.037 GB, free: 0.6719 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001282/0.5719, allocations: 33.2 kB / 1.037 GB, free: 0.6367 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.5721, allocations: 51.92 kB / 1.037 GB, free: 0.5859 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008708/0.573, allocations: 1.315 MB / 1.039 GB, free: 15.14 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.5731, allocations: 35.53 kB / 1.039 GB, free: 15.11 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.5732, allocations: 12 kB / 1.039 GB, free: 15.09 MB / 0.795 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.0001342/0.5733, allocations: 169.7 kB / 1.039 GB, free: 14.92 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.437e-05/0.5734, allocations: 23.75 kB / 1.039 GB, free: 14.89 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.819e-05/0.5734, allocations: 25.83 kB / 1.039 GB, free: 14.86 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.5734, allocations: 4 kB / 1.039 GB, free: 14.86 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-06/0.5734, allocations: 4.094 kB / 1.039 GB, free: 14.86 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.5735, allocations: 0 / 1.039 GB, free: 14.86 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007814/0.5742, allocations: 0.6986 MB / 1.04 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.5743, allocations: 4 kB / 1.04 GB, free: 14.06 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.144e-05/0.5743, allocations: 23.92 kB / 1.04 GB, free: 14.04 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.942e-05/0.5744, allocations: 24.84 kB / 1.04 GB, free: 14.01 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.5744, allocations: 8 kB / 1.04 GB, free: 14 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007893/0.5752, allocations: 1.327 MB / 1.041 GB, free: 12.54 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.5752, allocations: 4.031 kB / 1.041 GB, free: 12.54 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002885/0.5755, allocations: 310.8 kB / 1.041 GB, free: 12.2 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 8.335e-05/0.5756, allocations: 120.7 kB / 1.041 GB, free: 12.06 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.326e-05/0.5757, allocations: 0 / 1.041 GB, free: 12.06 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.5758, allocations: 16 kB / 1.041 GB, free: 12.05 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.82e-05/0.5759, allocations: 19.86 kB / 1.041 GB, free: 12.03 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.5759, allocations: 8 kB / 1.041 GB, free: 12.02 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001545/0.576, allocations: 197.9 kB / 1.042 GB, free: 11.83 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.576, allocations: 0 / 1.042 GB, free: 11.83 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003419/0.5764, allocations: 71.84 kB / 1.042 GB, free: 11.76 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.0004971/0.5769, allocations: 0.8552 MB / 1.043 GB, free: 10.86 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000366/0.5773, allocations: 263.7 kB / 1.043 GB, free: 10.59 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5773, allocations: 0.75 kB / 1.043 GB, free: 10.59 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001987/0.5775, allocations: 186.6 kB / 1.043 GB, free: 10.39 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004599/0.578, allocations: 63.27 kB / 1.043 GB, free: 10.33 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002648/0.5806, allocations: 2.837 MB / 1.046 GB, free: 7.297 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.581, allocations: 0.8025 MB / 1.047 GB, free: 6.469 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001301/0.5811, allocations: 38.27 kB / 1.047 GB, free: 6.434 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.5812, allocations: 83.41 kB / 1.047 GB, free: 6.355 MB / 0.795 GB Notification: Performance of SimCode: time 3.31e-07/0.5812, allocations: 3.938 kB / 1.047 GB, free: 6.352 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01486/0.5961, allocations: 4.97 MB / 1.052 GB, free: 1.551 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001799/0.5963, allocations: 210.9 kB / 1.052 GB, free: 1.301 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.613/2.209, allocations: 4 kB / 1.052 GB, free: 1.297 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