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.001567/0.001568, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001936/0.001936, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.438/1.438, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.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.557/2.557, allocations: 437.1 MB / 0.7104 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0023/0.0023, allocations: 63.91 kB / 0.8694 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6768/0.6791, allocations: 151.6 MB / 1.017 GB, free: 2.449 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.007951/0.6871, allocations: 3.838 MB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003907/0.6911, allocations: 1.729 MB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000307/0.6914, allocations: 7.938 kB / 1.023 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.00179/0.6932, allocations: 494 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0007365/0.694, allocations: 222.9 kB / 1.024 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007308/0.6947, allocations: 219.3 kB / 1.024 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007831/0.6955, allocations: 474.4 kB / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008099/0.6963, allocations: 367.4 kB / 1.025 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003479/0.6967, allocations: 187.4 kB / 1.025 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005056/0.6972, allocations: 219.2 kB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.294e-05/0.6973, allocations: 28 kB / 1.025 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006178/0.6979, allocations: 243.4 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001932/0.6981, allocations: 123.7 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002681/0.6984, allocations: 171.2 kB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008563/0.6993, allocations: 0.4984 MB / 1.026 GB, free: 9.656 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.6993, allocations: 0 / 1.026 GB, free: 9.656 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.413e-06/0.6993, allocations: 4 kB / 1.026 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.057e-05/0.6993, allocations: 4 kB / 1.026 GB, free: 9.648 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.001426/0.7008, allocations: 0.6276 MB / 1.027 GB, free: 8.973 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.7008, allocations: 12.03 kB / 1.027 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001139/0.701, allocations: 70.72 kB / 1.027 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001411/0.7024, allocations: 132.4 kB / 1.027 GB, free: 8.754 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003699/0.7028, allocations: 287.6 kB / 1.027 GB, free: 8.434 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.7028, allocations: 21.03 kB / 1.027 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.712e-05/0.7028, allocations: 28.38 kB / 1.027 GB, free: 8.387 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000636/0.7035, allocations: 467.7 kB / 1.028 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.7035, allocations: 3.938 kB / 1.028 GB, free: 7.887 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.529e-05/0.7035, allocations: 12 kB / 1.028 GB, free: 7.875 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.014e-05/0.7036, allocations: 28.55 kB / 1.028 GB, free: 7.848 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004929/0.7041, allocations: 321.9 kB / 1.028 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002157/0.7063, allocations: 2.193 MB / 1.03 GB, free: 5.129 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003662/0.7066, allocations: 259.8 kB / 1.03 GB, free: 4.848 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002454/0.7069, allocations: 108.8 kB / 1.03 GB, free: 4.738 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.458e-06/0.7069, allocations: 0 / 1.03 GB, free: 4.738 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/0.707, allocations: 42.66 kB / 1.03 GB, free: 4.688 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.192e-06/0.707, allocations: 3.938 kB / 1.03 GB, free: 4.684 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0005818/0.7075, allocations: 299.5 kB / 1.031 GB, free: 4.363 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.537e-05/0.7076, allocations: 55.41 kB / 1.031 GB, free: 4.297 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002756/0.7079, allocations: 266.6 kB / 1.031 GB, free: 4.031 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.7079, allocations: 29.7 kB / 1.031 GB, free: 3.996 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.7081, allocations: 207.8 kB / 1.031 GB, free: 3.789 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.897e-05/0.7081, allocations: 55.28 kB / 1.031 GB, free: 3.734 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.324e-05/0.7082, allocations: 53.84 kB / 1.031 GB, free: 3.672 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.7083, allocations: 330.8 kB / 1.032 GB, free: 3.34 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.731e-05/0.7084, allocations: 56.38 kB / 1.032 GB, free: 3.285 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/0.7086, allocations: 149.2 kB / 1.032 GB, free: 3.102 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002601/0.7089, allocations: 217 kB / 1.032 GB, free: 2.852 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.7089, allocations: 0 / 1.032 GB, free: 2.852 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004221/0.7093, allocations: 265.9 kB / 1.032 GB, free: 2.582 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.7093, allocations: 8 kB / 1.032 GB, free: 2.574 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.7093, allocations: 4 kB / 1.032 GB, free: 2.57 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001514/0.7095, allocations: 29.22 kB / 1.032 GB, free: 2.539 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001953/0.7097, allocations: 51.91 kB / 1.032 GB, free: 2.488 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001068/0.7108, allocations: 1.422 MB / 1.034 GB, free: 0.9297 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001735/0.711, allocations: 31.59 kB / 1.034 GB, free: 0.8984 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.711, allocations: 8 kB / 1.034 GB, free: 0.8906 MB / 0.7794 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.0001564/0.7112, allocations: 170.5 kB / 1.034 GB, free: 0.7148 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.138e-05/0.7112, allocations: 19.81 kB / 1.034 GB, free: 0.6953 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.919e-05/0.7113, allocations: 37.77 kB / 1.034 GB, free: 0.6523 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.7113, allocations: 0 / 1.034 GB, free: 0.6523 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.7113, allocations: 0 / 1.034 GB, free: 0.6523 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.7113, allocations: 4 kB / 1.034 GB, free: 0.6484 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008805/0.7122, allocations: 0.7025 MB / 1.035 GB, free: 15.85 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.7122, allocations: 0 / 1.035 GB, free: 15.85 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.198e-05/0.7123, allocations: 23.94 kB / 1.035 GB, free: 15.83 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.503e-05/0.7124, allocations: 28.78 kB / 1.035 GB, free: 15.8 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.7124, allocations: 4.188 kB / 1.035 GB, free: 15.79 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00097/0.7134, allocations: 1.422 MB / 1.036 GB, free: 14.23 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/0.7134, allocations: 4.031 kB / 1.036 GB, free: 14.23 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003206/0.7137, allocations: 318.5 kB / 1.037 GB, free: 13.88 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.7139, allocations: 112.8 kB / 1.037 GB, free: 13.75 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.269e-05/0.7139, allocations: 7.984 kB / 1.037 GB, free: 13.74 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001602/0.7141, allocations: 8 kB / 1.037 GB, free: 13.73 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.677e-05/0.7141, allocations: 27.86 kB / 1.037 GB, free: 13.71 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.679e-06/0.7141, allocations: 4 kB / 1.037 GB, free: 13.7 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001773/0.7143, allocations: 190 kB / 1.037 GB, free: 13.52 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7143, allocations: 0 / 1.037 GB, free: 13.52 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003995/0.7147, allocations: 83.78 kB / 1.037 GB, free: 13.44 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.0005773/0.7153, allocations: 0.8428 MB / 1.038 GB, free: 12.55 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004362/0.7157, allocations: 283.5 kB / 1.038 GB, free: 12.26 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.7158, allocations: 0 / 1.038 GB, free: 12.26 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002114/0.716, allocations: 183.7 kB / 1.038 GB, free: 12.07 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004869/0.7165, allocations: 58.97 kB / 1.038 GB, free: 12.02 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002939/0.7194, allocations: 2.725 MB / 1.041 GB, free: 9.102 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/0.7198, allocations: 0.7909 MB / 1.042 GB, free: 8.285 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001512/0.72, allocations: 46.25 kB / 1.042 GB, free: 8.238 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.7201, allocations: 83.59 kB / 1.042 GB, free: 8.156 MB / 0.795 GB Notification: Performance of SimCode: time 4.61e-07/0.7201, allocations: 3.938 kB / 1.042 GB, free: 8.152 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02458/0.7447, allocations: 5.271 MB / 1.047 GB, free: 3.004 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.935/9.679, allocations: 4 kB / 1.047 GB, free: 3 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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