Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_11_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.001332/0.001332, 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.001322/0.001322, allocations: 194.1 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.419/1.419, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.832/2.832, allocations: 469.8 MB / 0.7424 GB, free: 7.516 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 67.22 kB / 0.9086 GB, free: 34.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2575, allocations: 159.2 MB / 1.064 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005949/0.2635, allocations: 3.823 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002785/0.2663, allocations: 1.729 MB / 1.07 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.2664, allocations: 8 kB / 1.07 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001377/0.2678, allocations: 0.4951 MB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004406/0.2683, allocations: 222.9 kB / 1.07 GB, free: 7.941 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004556/0.2687, allocations: 205 kB / 1.07 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000504/0.2693, allocations: 478.4 kB / 1.071 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005613/0.2698, allocations: 361.4 kB / 1.071 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002165/0.2701, allocations: 199.3 kB / 1.071 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003623/0.2704, allocations: 211.2 kB / 1.072 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.453e-05/0.2705, allocations: 32 kB / 1.072 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000407/0.2709, allocations: 243.4 kB / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001442/0.2711, allocations: 127.7 kB / 1.072 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001916/0.2713, allocations: 171.1 kB / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005887/0.2718, allocations: 0.4946 MB / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.2719, allocations: 0 / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.022e-06/0.2719, allocations: 0 / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.732e-06/0.2719, allocations: 0 / 1.073 GB, free: 5.457 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.0009828/0.2729, allocations: 0.6315 MB / 1.073 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.2729, allocations: 12.03 kB / 1.073 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.092e-05/0.273, allocations: 70.72 kB / 1.073 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000884/0.2739, allocations: 124.4 kB / 1.073 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003703/0.2743, allocations: 288.2 kB / 1.074 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.82e-05/0.2743, allocations: 36.94 kB / 1.074 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.761e-05/0.2744, allocations: 28.38 kB / 1.074 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006859/0.275, allocations: 455.7 kB / 1.074 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.2751, allocations: 4 kB / 1.074 GB, free: 3.695 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.385e-05/0.2751, allocations: 15.98 kB / 1.074 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.402e-05/0.2752, allocations: 36.53 kB / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005219/0.2757, allocations: 317.9 kB / 1.075 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002309/0.278, allocations: 2.189 MB / 1.077 GB, free: 0.9336 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003891/0.2784, allocations: 243.8 kB / 1.077 GB, free: 0.668 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002565/0.2787, allocations: 117 kB / 1.077 GB, free: 0.5508 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.438e-05/0.2787, allocations: 7.938 kB / 1.077 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.2788, allocations: 34.56 kB / 1.077 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.2788, allocations: 0 / 1.077 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0005884/0.2793, allocations: 300.9 kB / 1.077 GB, free: 184 kB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.2794, allocations: 51.5 kB / 1.077 GB, free: 120 kB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003159/0.2797, allocations: 274.4 kB / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.2798, allocations: 33.7 kB / 1.078 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.2799, allocations: 207.8 kB / 1.078 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.457e-05/0.28, allocations: 47.27 kB / 1.078 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.681e-05/0.2801, allocations: 49.88 kB / 1.078 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.2802, allocations: 346.8 kB / 1.078 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.2803, allocations: 52.44 kB / 1.078 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001711/0.2805, allocations: 141.2 kB / 1.079 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002864/0.2808, allocations: 220.6 kB / 1.079 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.2808, allocations: 4 kB / 1.079 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004426/0.2813, allocations: 267.8 kB / 1.079 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.2813, allocations: 13.39 kB / 1.079 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.2813, allocations: 0 / 1.079 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001445/0.2815, allocations: 28.84 kB / 1.079 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/0.2817, allocations: 43.92 kB / 1.079 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001203/0.2829, allocations: 1.426 MB / 1.08 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001619/0.283, allocations: 27.69 kB / 1.08 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.769e-05/0.2831, allocations: 12 kB / 1.081 GB, free: 12.7 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.0001741/0.2833, allocations: 173.6 kB / 1.081 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.549e-05/0.2833, allocations: 27.7 kB / 1.081 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.762e-05/0.2834, allocations: 25.84 kB / 1.081 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.507e-06/0.2834, allocations: 0 / 1.081 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-06/0.2834, allocations: 64 / 1.081 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.2834, allocations: 7.984 kB / 1.081 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009656/0.2844, allocations: 0.7027 MB / 1.081 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.2844, allocations: 7.938 kB / 1.081 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.887e-05/0.2845, allocations: 19.98 kB / 1.081 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.157e-05/0.2846, allocations: 28.84 kB / 1.081 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.2846, allocations: 8 kB / 1.081 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/0.2857, allocations: 1.414 MB / 1.083 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2857, allocations: 0 / 1.083 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003556/0.2861, allocations: 321.2 kB / 1.083 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.2862, allocations: 116.8 kB / 1.083 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.207e-05/0.2863, allocations: 8 kB / 1.083 GB, free: 9.559 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001668/0.2864, allocations: 12.08 kB / 1.083 GB, free: 9.547 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.003e-05/0.2865, allocations: 23.8 kB / 1.083 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.2865, allocations: 11.98 kB / 1.083 GB, free: 9.512 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001982/0.2867, allocations: 186 kB / 1.084 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2867, allocations: 7.938 kB / 1.084 GB, free: 9.32 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003787/0.2871, allocations: 79.75 kB / 1.084 GB, free: 9.242 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.0006991/0.2878, allocations: 0.8487 MB / 1.084 GB, free: 8.344 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004612/0.2883, allocations: 279 kB / 1.085 GB, free: 8.059 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.2883, allocations: 4.125 kB / 1.085 GB, free: 8.055 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002301/0.2885, allocations: 178.6 kB / 1.085 GB, free: 7.867 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004446/0.289, allocations: 48.53 kB / 1.085 GB, free: 7.82 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003166/0.2922, allocations: 2.733 MB / 1.088 GB, free: 4.898 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004464/0.2926, allocations: 0.7985 MB / 1.088 GB, free: 4.074 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001409/0.2928, allocations: 42.27 kB / 1.088 GB, free: 4.035 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.2929, allocations: 79.41 kB / 1.088 GB, free: 3.961 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.2929, allocations: 0 / 1.088 GB, free: 3.961 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03159/0.3245, allocations: 5.282 MB / 1.094 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.379/9.703, allocations: 4 kB / 1.094 GB, free: 14.8 MB / 0.8575 GB (rm -f Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches