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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009562/0.0009562, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.006007/0.006007, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.303/1.303, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.237/2.237, allocations: 390.9 MB / 0.6664 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000323/0.000323, allocations: 8 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5627/0.5631, allocations: 142.4 MB / 0.9552 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.003242/0.5663, allocations: 3.495 MB / 0.9586 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001868/0.5682, allocations: 1.707 MB / 0.9602 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.5683, allocations: 5.5 kB / 0.9602 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.5685, allocations: 59.75 kB / 0.9603 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003739/0.5689, allocations: 205.9 kB / 0.9605 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003508/0.5693, allocations: 198.4 kB / 0.9607 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004816/0.5697, allocations: 0.664 MB / 0.9613 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003247/0.5701, allocations: 312.3 kB / 0.9616 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/0.5702, allocations: 153.8 kB / 0.9618 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002863/0.5705, allocations: 208.6 kB / 0.962 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.309e-05/0.5706, allocations: 19.06 kB / 0.962 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003585/0.5709, allocations: 301.7 kB / 0.9623 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.192e-05/0.571, allocations: 105.1 kB / 0.9624 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.5712, allocations: 181.9 kB / 0.9626 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000413/0.5716, allocations: 0.4983 MB / 0.963 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.5716, allocations: 3.984 kB / 0.9631 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.062e-06/0.5716, allocations: 0 / 0.9631 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.5716, allocations: 1.125 kB / 0.9631 GB, free: 1.898 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.0006605/0.5723, allocations: 0.5691 MB / 0.9636 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.5723, allocations: 8.938 kB / 0.9636 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.132e-05/0.5724, allocations: 70.56 kB / 0.9637 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008112/0.5732, allocations: 142.2 kB / 0.9638 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000251/0.5735, allocations: 292.4 kB / 0.9641 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.5735, allocations: 24.5 kB / 0.9641 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.576e-05/0.5735, allocations: 26.5 kB / 0.9641 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004972/0.574, allocations: 467 kB / 0.9646 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.574, allocations: 3.938 kB / 0.9646 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.031e-05/0.5741, allocations: 11.91 kB / 0.9646 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.224e-05/0.5741, allocations: 30.17 kB / 0.9646 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004111/0.5745, allocations: 321.6 kB / 0.9649 GB, free: 468 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001804/0.5764, allocations: 2.186 MB / 0.9671 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003378/0.5767, allocations: 258.8 kB / 0.9673 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002269/0.5769, allocations: 107 kB / 0.9674 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 9.638e-06/0.577, allocations: 2.656 kB / 0.9674 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.118e-05/0.577, allocations: 39.88 kB / 0.9675 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.233e-06/0.577, allocations: 0 / 0.9675 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0005287/0.5775, allocations: 302.5 kB / 0.9678 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.775e-05/0.5776, allocations: 53.28 kB / 0.9678 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002537/0.5778, allocations: 266.4 kB / 0.9681 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.5779, allocations: 30.58 kB / 0.9681 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.578, allocations: 214.2 kB / 0.9683 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.213e-05/0.578, allocations: 45.45 kB / 0.9683 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.63e-05/0.5781, allocations: 24.7 kB / 0.9684 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.912e-05/0.5782, allocations: 340.1 kB / 0.9687 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.264e-05/0.5783, allocations: 58.19 kB / 0.9687 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001379/0.5784, allocations: 149.6 kB / 0.9689 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002448/0.5787, allocations: 222.3 kB / 0.9691 GB, free: 12.6 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.5787, allocations: 5.125 kB / 0.9691 GB, free: 12.6 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003841/0.5791, allocations: 252.7 kB / 0.9693 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.5791, allocations: 5.312 kB / 0.9693 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.5791, allocations: 4 kB / 0.9694 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001382/0.5792, allocations: 34.45 kB / 0.9694 GB, free: 12.44 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001834/0.5794, allocations: 46.73 kB / 0.9694 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008706/0.5803, allocations: 1.326 MB / 0.9707 GB, free: 11.06 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.5805, allocations: 23.97 kB / 0.9707 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.5805, allocations: 12.5 kB / 0.9708 GB, free: 11.04 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.0001368/0.5806, allocations: 165.4 kB / 0.9709 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.877e-05/0.5807, allocations: 27.88 kB / 0.9709 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.181e-05/0.5807, allocations: 31.83 kB / 0.971 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.5808, allocations: 10.16 kB / 0.971 GB, free: 10.85 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.5808, allocations: 1 kB / 0.971 GB, free: 10.85 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.5808, allocations: 0 / 0.971 GB, free: 10.85 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008038/0.5816, allocations: 0.6987 MB / 0.9717 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.5816, allocations: 2 kB / 0.9717 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.62e-05/0.5817, allocations: 27.08 kB / 0.9717 GB, free: 10.22 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.569e-05/0.5818, allocations: 27.97 kB / 0.9717 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.5818, allocations: 2.938 kB / 0.9717 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007902/0.5826, allocations: 1.325 MB / 0.973 GB, free: 8.832 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.5826, allocations: 1.594 kB / 0.973 GB, free: 8.832 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002912/0.5829, allocations: 309.7 kB / 0.9733 GB, free: 8.57 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.38e-05/0.583, allocations: 116.5 kB / 0.9734 GB, free: 8.449 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.751e-05/0.583, allocations: 11.44 kB / 0.9734 GB, free: 8.441 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.5832, allocations: 7.5 kB / 0.9734 GB, free: 8.441 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.156e-05/0.5832, allocations: 14.52 kB / 0.9735 GB, free: 8.434 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.175e-05/0.5832, allocations: 5.031 kB / 0.9735 GB, free: 8.434 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001723/0.5834, allocations: 199.4 kB / 0.9737 GB, free: 8.297 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5834, allocations: 0 / 0.9737 GB, free: 8.297 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003673/0.5838, allocations: 79.69 kB / 0.9737 GB, free: 8.277 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.0005085/0.5843, allocations: 0.8563 MB / 0.9746 GB, free: 7.473 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003794/0.5847, allocations: 258.9 kB / 0.9748 GB, free: 7.301 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.5847, allocations: 1.219 kB / 0.9748 GB, free: 7.301 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001923/0.5849, allocations: 184.9 kB / 0.975 GB, free: 7.152 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000492/0.5854, allocations: 62.73 kB / 0.975 GB, free: 7.121 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002741/0.5882, allocations: 2.86 MB / 0.9778 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.5885, allocations: 0.7954 MB / 0.9786 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001416/0.5886, allocations: 40.92 kB / 0.9787 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.5887, allocations: 83.44 kB / 0.9787 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of SimCode: time 2.21e-07/0.5888, allocations: 1.219 kB / 0.9787 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.315/1.903, allocations: 4.972 MB / 0.9836 GB, free: 1.098 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002199/1.904, allocations: 226.8 kB / 0.9838 GB, free: 0.832 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.862/3.766, allocations: 0 / 0.9838 GB, free: 0.832 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