Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Loads.Examples.Resistor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_latest_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.001677/0.001677, allocations: 108 kB / 15.6 MB, free: 132 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.001949/0.001949, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.344/1.344, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.713/2.713, allocations: 469.4 MB / 0.742 GB, free: 7.699 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002146/0.002147, allocations: 63.25 kB / 0.9083 GB, free: 34.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2781, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006532/0.2847, allocations: 3.83 MB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002734/0.2875, allocations: 1.733 MB / 1.069 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002194/0.2877, allocations: 4 kB / 1.069 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001385/0.2891, allocations: 498 kB / 1.07 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000629/0.2898, allocations: 226.9 kB / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005992/0.2904, allocations: 207.5 kB / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005962/0.291, allocations: 474.4 kB / 1.07 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006284/0.2916, allocations: 361.4 kB / 1.071 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002913/0.2919, allocations: 195.4 kB / 1.071 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004769/0.2924, allocations: 207.2 kB / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.116e-05/0.2925, allocations: 31.94 kB / 1.071 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004595/0.293, allocations: 247.5 kB / 1.071 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.2931, allocations: 127.7 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000205/0.2933, allocations: 179.1 kB / 1.072 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005955/0.2939, allocations: 498.5 kB / 1.072 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.294, allocations: 4 kB / 1.072 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.332e-06/0.294, allocations: 0 / 1.072 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.413e-05/0.294, allocations: 0 / 1.072 GB, free: 5.723 MB / 0.8262 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.001/0.295, allocations: 0.6315 MB / 1.073 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.295, allocations: 12.03 kB / 1.073 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.627e-05/0.2951, allocations: 78.7 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000918/0.296, allocations: 128.4 kB / 1.073 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003775/0.2964, allocations: 300.1 kB / 1.073 GB, free: 4.488 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.2965, allocations: 21.03 kB / 1.073 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.31e-05/0.2965, allocations: 24.38 kB / 1.073 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006689/0.2972, allocations: 463.7 kB / 1.074 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.2972, allocations: 0 / 1.074 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.66e-05/0.2973, allocations: 15.94 kB / 1.074 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.922e-05/0.2973, allocations: 32.53 kB / 1.074 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004963/0.2978, allocations: 325.9 kB / 1.074 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002353/0.3002, allocations: 2.185 MB / 1.076 GB, free: 1.191 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003847/0.3006, allocations: 247.8 kB / 1.077 GB, free: 0.9219 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002433/0.3008, allocations: 113 kB / 1.077 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.328e-05/0.3009, allocations: 0 / 1.077 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.3009, allocations: 46.55 kB / 1.077 GB, free: 0.7539 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.182e-06/0.3009, allocations: 0 / 1.077 GB, free: 0.7539 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0005926/0.3015, allocations: 297.5 kB / 1.077 GB, free: 448 kB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.5e-05/0.3015, allocations: 51.41 kB / 1.077 GB, free: 384 kB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002666/0.3018, allocations: 270.5 kB / 1.077 GB, free: 108 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.3018, allocations: 29.7 kB / 1.077 GB, free: 72 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.302, allocations: 207.8 kB / 1.078 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.587e-05/0.302, allocations: 47.27 kB / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.083e-05/0.3021, allocations: 45.94 kB / 1.078 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.3023, allocations: 342.7 kB / 1.078 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.631e-05/0.3024, allocations: 56.44 kB / 1.078 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.3025, allocations: 148 kB / 1.078 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000256/0.3028, allocations: 221.5 kB / 1.078 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3028, allocations: 0 / 1.078 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004235/0.3032, allocations: 274.1 kB / 1.079 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.3032, allocations: 9.75 kB / 1.079 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.3032, allocations: 4 kB / 1.079 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001585/0.3034, allocations: 24.84 kB / 1.079 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000181/0.3036, allocations: 47.92 kB / 1.079 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001069/0.3047, allocations: 1.422 MB / 1.08 GB, free: 13 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001642/0.3049, allocations: 27.67 kB / 1.08 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.3049, allocations: 12.12 kB / 1.08 GB, free: 12.96 MB / 0.8419 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.0001487/0.305, allocations: 179.4 kB / 1.08 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.931e-05/0.3051, allocations: 19.78 kB / 1.08 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.374e-05/0.3051, allocations: 29.84 kB / 1.08 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3052, allocations: 4 kB / 1.08 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3052, allocations: 3.984 kB / 1.08 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.3052, allocations: 0 / 1.08 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008615/0.306, allocations: 0.7025 MB / 1.081 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3061, allocations: 0 / 1.081 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.842e-05/0.3061, allocations: 23.98 kB / 1.081 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.15e-05/0.3062, allocations: 32.97 kB / 1.081 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.938e-06/0.3063, allocations: 0 / 1.081 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009829/0.3072, allocations: 1.418 MB / 1.082 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.3073, allocations: 7.969 kB / 1.082 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003561/0.3076, allocations: 325.1 kB / 1.083 GB, free: 9.953 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001113/0.3077, allocations: 112.8 kB / 1.083 GB, free: 9.824 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.315e-05/0.3078, allocations: 8 kB / 1.083 GB, free: 9.816 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.308, allocations: 11.98 kB / 1.083 GB, free: 9.805 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.289e-05/0.308, allocations: 19.92 kB / 1.083 GB, free: 9.785 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.082e-05/0.308, allocations: 4 kB / 1.083 GB, free: 9.781 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002082/0.3082, allocations: 190 kB / 1.083 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.144e-06/0.3083, allocations: 0 / 1.083 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000407/0.3087, allocations: 83.69 kB / 1.083 GB, free: 9.512 MB / 0.8419 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.0005798/0.3092, allocations: 0.8476 MB / 1.084 GB, free: 8.613 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004258/0.3097, allocations: 280.2 kB / 1.084 GB, free: 8.328 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3097, allocations: 0 / 1.084 GB, free: 8.328 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002126/0.3099, allocations: 187.7 kB / 1.084 GB, free: 8.133 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004526/0.3104, allocations: 59.22 kB / 1.085 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003061/0.3135, allocations: 2.721 MB / 1.087 GB, free: 5.168 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/0.3139, allocations: 0.7985 MB / 1.088 GB, free: 4.344 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001519/0.314, allocations: 42.27 kB / 1.088 GB, free: 4.305 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.3141, allocations: 83.41 kB / 1.088 GB, free: 4.227 MB / 0.8419 GB Notification: Performance of SimCode: time 3.31e-07/0.3142, allocations: 0 / 1.088 GB, free: 4.227 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02575/0.3399, allocations: 5.282 MB / 1.093 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.069/9.409, allocations: 10.73 kB / 1.093 GB, free: 15.07 MB / 0.8575 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches