Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_9_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.001463/0.001463, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001811/0.00181, allocations: 200 kB / 16.26 MB, free: 6.625 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.479/1.479, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.434/2.434, allocations: 390.2 MB / 0.6644 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 63.91 kB / 0.8122 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6431/0.6445, allocations: 140.4 MB / 0.9492 GB, free: 9.02 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005171/0.6497, allocations: 3.863 MB / 0.953 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002398/0.6521, allocations: 1.721 MB / 0.9547 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001517/0.6523, allocations: 9.5 kB / 0.9547 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0011/0.6534, allocations: 468 kB / 0.9551 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003406/0.6537, allocations: 215.6 kB / 0.9553 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003654/0.6541, allocations: 189.8 kB / 0.9555 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003923/0.6545, allocations: 474.4 kB / 0.956 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004859/0.655, allocations: 408.1 kB / 0.9564 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001419/0.6552, allocations: 194.9 kB / 0.9566 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002835/0.6554, allocations: 226.1 kB / 0.9568 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.113e-05/0.6555, allocations: 27.12 kB / 0.9568 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002917/0.6558, allocations: 248.4 kB / 0.957 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.767e-05/0.6559, allocations: 118.7 kB / 0.9571 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.656, allocations: 174.2 kB / 0.9573 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004362/0.6565, allocations: 0.523 MB / 0.9578 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.6565, allocations: 4 kB / 0.9578 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.523e-06/0.6565, allocations: 1.375 kB / 0.9578 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.213e-06/0.6565, allocations: 0 / 0.9578 GB, free: 2.676 MB / 0.7169 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.0007784/0.6573, allocations: 0.6232 MB / 0.9584 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.6573, allocations: 9.688 kB / 0.9584 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.211e-05/0.6574, allocations: 70.72 kB / 0.9585 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008099/0.6582, allocations: 138.4 kB / 0.9586 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.6585, allocations: 287.9 kB / 0.9589 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/0.6585, allocations: 20.66 kB / 0.9589 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.129e-05/0.6586, allocations: 26.44 kB / 0.959 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005483/0.6591, allocations: 466 kB / 0.9594 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.6591, allocations: 1.125 kB / 0.9594 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.266e-05/0.6592, allocations: 15.95 kB / 0.9594 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.411e-05/0.6592, allocations: 34.17 kB / 0.9595 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004299/0.6597, allocations: 316.9 kB / 0.9598 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001667/0.6613, allocations: 2.189 MB / 0.9619 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003325/0.6617, allocations: 255.8 kB / 0.9621 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002254/0.6619, allocations: 117.2 kB / 0.9623 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.155e-05/0.6619, allocations: 1.094 kB / 0.9623 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.662, allocations: 40.88 kB / 0.9623 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.393e-06/0.662, allocations: 0 / 0.9623 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0005386/0.6625, allocations: 293.3 kB / 0.9626 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.6626, allocations: 52.75 kB / 0.9626 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002665/0.6628, allocations: 270.4 kB / 0.9629 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.6629, allocations: 31.11 kB / 0.9629 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.663, allocations: 205.6 kB / 0.9631 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.866e-05/0.663, allocations: 54.92 kB / 0.9632 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.633e-05/0.6631, allocations: 46.98 kB / 0.9632 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.6632, allocations: 339.9 kB / 0.9635 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.207e-05/0.6633, allocations: 55.25 kB / 0.9636 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000145/0.6635, allocations: 144.8 kB / 0.9637 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002463/0.6637, allocations: 218.2 kB / 0.9639 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.6637, allocations: 5.281 kB / 0.9639 GB, free: 13.33 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003919/0.6641, allocations: 261.7 kB / 0.9642 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.6642, allocations: 6.531 kB / 0.9642 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.6642, allocations: 2.75 kB / 0.9642 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000163/0.6643, allocations: 35.44 kB / 0.9642 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001696/0.6645, allocations: 46.55 kB / 0.9643 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001009/0.6655, allocations: 1.427 MB / 0.9657 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.6657, allocations: 28.03 kB / 0.9657 GB, free: 11.67 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.627e-05/0.6657, allocations: 12.66 kB / 0.9657 GB, free: 11.66 MB / 0.7325 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.0001441/0.6659, allocations: 169.1 kB / 0.9659 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.618e-05/0.6659, allocations: 23.19 kB / 0.9659 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.276e-05/0.666, allocations: 32.77 kB / 0.9659 GB, free: 11.48 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.666, allocations: 1.312 kB / 0.9659 GB, free: 11.48 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.666, allocations: 1.031 kB / 0.9659 GB, free: 11.48 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.666, allocations: 0 / 0.9659 GB, free: 11.48 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008352/0.6668, allocations: 0.7106 MB / 0.9666 GB, free: 10.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.6669, allocations: 1.312 kB / 0.9666 GB, free: 10.84 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.12e-05/0.6669, allocations: 22.61 kB / 0.9666 GB, free: 10.84 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.537e-05/0.667, allocations: 32.19 kB / 0.9667 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.667, allocations: 3.344 kB / 0.9667 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008934/0.6679, allocations: 1.413 MB / 0.968 GB, free: 9.359 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-05/0.668, allocations: 5.812 kB / 0.9681 GB, free: 9.355 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003046/0.6683, allocations: 321.2 kB / 0.9684 GB, free: 9.082 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.744e-05/0.6684, allocations: 109.4 kB / 0.9685 GB, free: 8.969 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.054e-05/0.6684, allocations: 7.219 kB / 0.9685 GB, free: 8.965 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.6686, allocations: 10.77 kB / 0.9685 GB, free: 8.961 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.855e-05/0.6686, allocations: 22.33 kB / 0.9685 GB, free: 8.945 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.176e-05/0.6686, allocations: 5.188 kB / 0.9685 GB, free: 8.945 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001694/0.6688, allocations: 191.4 kB / 0.9687 GB, free: 8.816 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6688, allocations: 0 / 0.9687 GB, free: 8.816 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000354/0.6692, allocations: 76.47 kB / 0.9688 GB, free: 8.801 MB / 0.7325 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.0005556/0.6697, allocations: 0.8503 MB / 0.9696 GB, free: 8 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004201/0.6701, allocations: 274.5 kB / 0.9699 GB, free: 7.816 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.6702, allocations: 0.875 kB / 0.9699 GB, free: 7.816 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002042/0.6704, allocations: 189.5 kB / 0.97 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004282/0.6708, allocations: 65.38 kB / 0.9701 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002967/0.6738, allocations: 2.843 MB / 0.9729 GB, free: 5.301 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003566/0.6742, allocations: 0.7957 MB / 0.9737 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000148/0.6743, allocations: 45.25 kB / 0.9737 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.6744, allocations: 83.56 kB / 0.9738 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.6744, allocations: 0 / 0.9738 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1463/0.8208, allocations: 5.194 MB / 0.9788 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001815/0.821, allocations: 219.3 kB / 0.9791 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.107/2.928, allocations: 5.219 kB / 0.9791 GB, free: 1.711 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches