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.008154/0.008154, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001954/0.001954, allocations: 195.1 kB / 16.67 MB, free: 5.977 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.309 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.313/2.313, allocations: 390.2 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 67.02 kB / 0.9504 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2514, allocations: 140.4 MB / 1.087 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005476/0.257, allocations: 3.843 MB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002744/0.2597, allocations: 1.726 MB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002545/0.26, allocations: 4 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001427/0.2614, allocations: 496.7 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000545/0.262, allocations: 230.9 kB / 1.094 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005248/0.2625, allocations: 199.5 kB / 1.094 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005349/0.2631, allocations: 486 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005468/0.2636, allocations: 373.4 kB / 1.095 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002497/0.2639, allocations: 195.3 kB / 1.095 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003769/0.2643, allocations: 215.2 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.315e-05/0.2644, allocations: 28 kB / 1.095 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004097/0.2648, allocations: 243.4 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001351/0.2649, allocations: 131.7 kB / 1.095 GB, free: 9.875 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001824/0.2651, allocations: 167.2 kB / 1.096 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006172/0.2657, allocations: 0.502 MB / 1.096 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.2658, allocations: 3.984 kB / 1.096 GB, free: 9.203 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.414e-06/0.2658, allocations: 0 / 1.096 GB, free: 9.203 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.313e-05/0.2658, allocations: 7.938 kB / 1.096 GB, free: 9.195 MB / 0.8575 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.001054/0.2668, allocations: 0.6426 MB / 1.097 GB, free: 8.504 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.2669, allocations: 12.03 kB / 1.097 GB, free: 8.492 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.094e-05/0.267, allocations: 70.72 kB / 1.097 GB, free: 8.414 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009202/0.2679, allocations: 132.6 kB / 1.097 GB, free: 8.285 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004069/0.2683, allocations: 292.4 kB / 1.097 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.381e-05/0.2683, allocations: 21.03 kB / 1.097 GB, free: 7.941 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.766e-05/0.2684, allocations: 36.3 kB / 1.097 GB, free: 7.906 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006398/0.269, allocations: 463.7 kB / 1.098 GB, free: 7.414 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.2691, allocations: 0 / 1.098 GB, free: 7.414 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.507e-05/0.2691, allocations: 12 kB / 1.098 GB, free: 7.402 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.623e-05/0.2692, allocations: 32.53 kB / 1.098 GB, free: 7.371 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004871/0.2697, allocations: 317.9 kB / 1.098 GB, free: 7.062 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002042/0.2717, allocations: 2.185 MB / 1.1 GB, free: 4.664 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003675/0.2721, allocations: 259.8 kB / 1.1 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002192/0.2723, allocations: 104.8 kB / 1.1 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.538e-06/0.2723, allocations: 3.938 kB / 1.1 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.2724, allocations: 42.55 kB / 1.101 GB, free: 4.223 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.212e-06/0.2724, allocations: 0 / 1.101 GB, free: 4.223 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0005838/0.273, allocations: 297.9 kB / 1.101 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.273, allocations: 55.41 kB / 1.101 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002572/0.2733, allocations: 266.6 kB / 1.101 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.2733, allocations: 33.69 kB / 1.101 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.2734, allocations: 204.3 kB / 1.101 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.086e-05/0.2735, allocations: 59.52 kB / 1.101 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.777e-05/0.2736, allocations: 53.89 kB / 1.101 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.2737, allocations: 338.8 kB / 1.102 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.651e-05/0.2738, allocations: 52.44 kB / 1.102 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/0.2739, allocations: 144.3 kB / 1.102 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002583/0.2742, allocations: 230.4 kB / 1.102 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.2742, allocations: 0 / 1.102 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004204/0.2746, allocations: 266.1 kB / 1.102 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.2747, allocations: 8 kB / 1.102 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.2747, allocations: 4 kB / 1.102 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000154/0.2748, allocations: 24.84 kB / 1.102 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001834/0.275, allocations: 47.92 kB / 1.102 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001029/0.2761, allocations: 1.418 MB / 1.104 GB, free: 476 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001679/0.2762, allocations: 35.92 kB / 1.104 GB, free: 440 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.42e-05/0.2763, allocations: 8 kB / 1.104 GB, free: 432 kB / 0.8575 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.0001433/0.2764, allocations: 169.7 kB / 1.104 GB, free: 252 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.082e-05/0.2765, allocations: 27.86 kB / 1.104 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.446e-05/0.2765, allocations: 25.84 kB / 1.104 GB, free: 196 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2765, allocations: 0 / 1.104 GB, free: 196 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.2765, allocations: 7.984 kB / 1.104 GB, free: 188 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.716e-06/0.2765, allocations: 96 / 1.104 GB, free: 188 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009059/0.2775, allocations: 0.7063 MB / 1.105 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.2775, allocations: 4 kB / 1.105 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.822e-05/0.2776, allocations: 24.17 kB / 1.105 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.249e-05/0.2777, allocations: 28.78 kB / 1.105 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.2777, allocations: 4 kB / 1.105 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009813/0.2787, allocations: 1.422 MB / 1.106 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.795e-06/0.2787, allocations: 7.969 kB / 1.106 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003407/0.279, allocations: 321.3 kB / 1.107 GB, free: 13.4 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.2792, allocations: 116.9 kB / 1.107 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.269e-05/0.2792, allocations: 0 / 1.107 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.2794, allocations: 19.98 kB / 1.107 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.169e-05/0.2794, allocations: 15.92 kB / 1.107 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.2794, allocations: 4 kB / 1.107 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001907/0.2796, allocations: 186 kB / 1.107 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2796, allocations: 0 / 1.107 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003906/0.28, allocations: 83.78 kB / 1.107 GB, free: 12.97 MB / 0.8731 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.0005723/0.2806, allocations: 0.8586 MB / 1.108 GB, free: 12.06 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004247/0.281, allocations: 268.2 kB / 1.108 GB, free: 11.79 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.2811, allocations: 0 / 1.108 GB, free: 11.79 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001985/0.2813, allocations: 183.7 kB / 1.108 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004691/0.2817, allocations: 63.22 kB / 1.108 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002856/0.2846, allocations: 2.714 MB / 1.111 GB, free: 8.625 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.285, allocations: 0.7909 MB / 1.112 GB, free: 7.809 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000132/0.2851, allocations: 42.27 kB / 1.112 GB, free: 7.77 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.2852, allocations: 83.41 kB / 1.112 GB, free: 7.688 MB / 0.8731 GB Notification: Performance of SimCode: time 2.7e-07/0.2853, allocations: 0 / 1.112 GB, free: 7.688 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02575/0.311, allocations: 5.391 MB / 1.117 GB, free: 2.426 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.061/9.372, allocations: 11.33 kB / 1.117 GB, free: 2.418 MB / 0.8731 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 & python3 -m fmpy simulate --output-file Buildings_9_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_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.csv","/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