Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",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.001659/0.001659, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002053/0.002053, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.26/1.26, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.479/2.479, allocations: 461.9 MB / 0.7342 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 63.38 kB / 0.8985 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2472, allocations: 157.4 MB / 1.052 GB, free: 8.148 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004507/0.2517, allocations: 3.132 MB / 1.055 GB, free: 5 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001976/0.2537, allocations: 1.321 MB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001952/0.2539, allocations: 4 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0009709/0.2549, allocations: 322.1 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000407/0.2554, allocations: 135.4 kB / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004095/0.2558, allocations: 123.7 kB / 1.057 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000438/0.2562, allocations: 434.8 kB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002845/0.2565, allocations: 164.3 kB / 1.058 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001522/0.2567, allocations: 111.5 kB / 1.058 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002779/0.257, allocations: 143.5 kB / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.463e-05/0.257, allocations: 12 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003311/0.2574, allocations: 215.5 kB / 1.058 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.875e-05/0.2575, allocations: 71.81 kB / 1.058 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.2576, allocations: 103.5 kB / 1.058 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003769/0.258, allocations: 343.2 kB / 1.059 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.258, allocations: 0 / 1.059 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.12e-07/0.258, allocations: 0 / 1.059 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.258, allocations: 0 / 1.059 GB, free: 1.539 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007476/0.2587, allocations: 0.5164 MB / 1.059 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.2588, allocations: 11.97 kB / 1.059 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.657e-05/0.2589, allocations: 54.73 kB / 1.059 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005583/0.2594, allocations: 80.58 kB / 1.059 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002526/0.2597, allocations: 243.9 kB / 1.06 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.2597, allocations: 12.75 kB / 1.06 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.97e-05/0.2597, allocations: 20.38 kB / 1.06 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003955/0.2601, allocations: 303.3 kB / 1.06 GB, free: 196 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.2602, allocations: 7.938 kB / 1.06 GB, free: 188 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.321e-05/0.2602, allocations: 4 kB / 1.06 GB, free: 184 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.095e-05/0.2602, allocations: 16.38 kB / 1.06 GB, free: 168 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002984/0.2605, allocations: 200.7 kB / 1.06 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001327/0.2619, allocations: 1.468 MB / 1.061 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002323/0.2621, allocations: 179.7 kB / 1.062 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.947e-05/0.2622, allocations: 32.84 kB / 1.062 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.035e-06/0.2622, allocations: 0 / 1.062 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.123e-05/0.2622, allocations: 38.5 kB / 1.062 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 9.02e-07/0.2622, allocations: 0 / 1.062 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004363/0.2627, allocations: 227.4 kB / 1.062 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.904e-05/0.2627, allocations: 51.41 kB / 1.062 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.2629, allocations: 199 kB / 1.062 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.2629, allocations: 25.7 kB / 1.062 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.736e-05/0.263, allocations: 167.5 kB / 1.062 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.094e-05/0.263, allocations: 31.58 kB / 1.062 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.195e-05/0.2631, allocations: 37.62 kB / 1.062 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.807e-05/0.2632, allocations: 326.8 kB / 1.063 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.058e-05/0.2632, allocations: 35.98 kB / 1.063 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.304e-05/0.2633, allocations: 102.3 kB / 1.063 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.2635, allocations: 148.6 kB / 1.063 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.2635, allocations: 0 / 1.063 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000278/0.2638, allocations: 190.1 kB / 1.063 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.2638, allocations: 8 kB / 1.063 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.2638, allocations: 4.312 kB / 1.063 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001368/0.264, allocations: 25.06 kB / 1.063 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.2641, allocations: 31.98 kB / 1.063 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000857/0.2649, allocations: 1.319 MB / 1.065 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001169/0.2651, allocations: 20 kB / 1.065 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/0.2651, allocations: 8 kB / 1.065 GB, free: 10.84 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * 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.0001106/0.2652, allocations: 141.8 kB / 1.065 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.862e-05/0.2653, allocations: 15.75 kB / 1.065 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.21e-05/0.2653, allocations: 21.39 kB / 1.065 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.2653, allocations: 4.047 kB / 1.065 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.2653, allocations: 3.984 kB / 1.065 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.2653, allocations: 0 / 1.065 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004444/0.2658, allocations: 451.2 kB / 1.065 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.2658, allocations: 4.062 kB / 1.065 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.648e-05/0.2658, allocations: 4 kB / 1.065 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.623e-05/0.2659, allocations: 28.88 kB / 1.065 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.094e-06/0.2659, allocations: 3.938 kB / 1.065 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007723/0.2667, allocations: 1.319 MB / 1.067 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2667, allocations: 0 / 1.067 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001969/0.2669, allocations: 212.3 kB / 1.067 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.902e-05/0.267, allocations: 93 kB / 1.067 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.267, allocations: 7.938 kB / 1.067 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.2671, allocations: 0 / 1.067 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.109e-05/0.2671, allocations: 11.98 kB / 1.067 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.2671, allocations: 0 / 1.067 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001107/0.2673, allocations: 152.7 kB / 1.067 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2673, allocations: 0 / 1.067 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003178/0.2676, allocations: 55.84 kB / 1.067 GB, free: 8.102 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * 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.0004151/0.268, allocations: 0.7443 MB / 1.068 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003648/0.2684, allocations: 210.7 kB / 1.068 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.2684, allocations: 0 / 1.068 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001523/0.2686, allocations: 146.7 kB / 1.068 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000359/0.2689, allocations: 27.98 kB / 1.068 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002183/0.2711, allocations: 2.108 MB / 1.07 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.2715, allocations: 0.7478 MB / 1.071 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.786e-05/0.2716, allocations: 25.53 kB / 1.071 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.155e-05/0.2716, allocations: 55.41 kB / 1.071 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.2716, allocations: 0 / 1.071 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4769/0.7486, allocations: 3.471 MB / 1.074 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002713/0.7489, allocations: 226.4 kB / 1.075 GB, free: 244 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.832/2.581, allocations: 4 kB / 1.075 GB, free: 240 kB / 0.8262 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches