Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 99.66 kB / 18.94 MB, free: 2.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 220 kB / 22.24 MB, free: 5.109 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.477/1.477, allocations: 230.6 MB / 256 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.264/3.264, allocations: 0.4892 GB / 0.7943 GB, free: 35.72 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002931/0.002931, allocations: 69.48 kB / 1.153 GB, free: 25.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.3128, allocations: 176.1 MB / 1.325 GB, free: 2.402 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006322/0.3191, allocations: 3.797 MB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003918/0.3231, allocations: 1.71 MB / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003656/0.3234, allocations: 11.94 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001624/0.325, allocations: 478.2 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000657/0.3257, allocations: 234.8 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007001/0.3264, allocations: 209.2 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0007418/0.3271, allocations: 474.4 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006535/0.3278, allocations: 289.4 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003447/0.3281, allocations: 203.4 kB / 1.332 GB, free: 11.01 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005001/0.3286, allocations: 211.1 kB / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.806e-05/0.3287, allocations: 28 kB / 1.332 GB, free: 10.77 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004682/0.3292, allocations: 223.5 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001674/0.3293, allocations: 131.6 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002415/0.3296, allocations: 143.4 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0007742/0.3304, allocations: 0.502 MB / 1.333 GB, free: 9.781 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3304, allocations: 0 / 1.333 GB, free: 9.781 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.904e-06/0.3304, allocations: 4 kB / 1.333 GB, free: 9.777 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.51e-05/0.3304, allocations: 3.938 kB / 1.333 GB, free: 9.773 MB / 1.029 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.001309/0.3317, allocations: 0.5713 MB / 1.334 GB, free: 9.172 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.3317, allocations: 8.031 kB / 1.334 GB, free: 9.164 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001278/0.3319, allocations: 74.7 kB / 1.334 GB, free: 9.082 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001003/0.3329, allocations: 132.6 kB / 1.334 GB, free: 8.953 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000552/0.3334, allocations: 238.5 kB / 1.334 GB, free: 8.695 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.423e-05/0.3335, allocations: 21.03 kB / 1.334 GB, free: 8.672 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.953e-05/0.3335, allocations: 24.38 kB / 1.334 GB, free: 8.648 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009293/0.3344, allocations: 0.5938 MB / 1.335 GB, free: 7.988 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.3345, allocations: 3.938 kB / 1.335 GB, free: 7.984 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.991e-05/0.3345, allocations: 12 kB / 1.335 GB, free: 7.973 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.888e-05/0.3346, allocations: 32.62 kB / 1.335 GB, free: 7.941 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006097/0.3352, allocations: 318.3 kB / 1.335 GB, free: 7.633 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002307/0.3375, allocations: 1.579 MB / 1.337 GB, free: 5.969 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003527/0.3378, allocations: 162.7 kB / 1.337 GB, free: 5.801 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002333/0.3381, allocations: 96.78 kB / 1.337 GB, free: 5.703 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.3381, allocations: 4 kB / 1.337 GB, free: 5.699 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/0.3381, allocations: 34.56 kB / 1.337 GB, free: 5.656 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.953e-06/0.3381, allocations: 3.938 kB / 1.337 GB, free: 5.652 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0006251/0.3387, allocations: 233.1 kB / 1.337 GB, free: 5.418 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.15e-05/0.3388, allocations: 55.41 kB / 1.338 GB, free: 5.352 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000334/0.3391, allocations: 269.8 kB / 1.338 GB, free: 5.082 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.67e-05/0.3392, allocations: 29.7 kB / 1.338 GB, free: 5.047 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/0.3393, allocations: 212.3 kB / 1.338 GB, free: 4.832 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.758e-05/0.3394, allocations: 51.53 kB / 1.338 GB, free: 4.781 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.655e-05/0.3395, allocations: 49.94 kB / 1.338 GB, free: 4.723 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001709/0.3396, allocations: 334.8 kB / 1.338 GB, free: 4.387 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.3397, allocations: 56.44 kB / 1.338 GB, free: 4.332 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001761/0.3399, allocations: 144.7 kB / 1.339 GB, free: 4.152 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002905/0.3402, allocations: 215 kB / 1.339 GB, free: 3.902 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.239e-06/0.3402, allocations: 3.984 kB / 1.339 GB, free: 3.898 MB / 1.029 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004677/0.3407, allocations: 264.4 kB / 1.339 GB, free: 3.633 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.3407, allocations: 4 kB / 1.339 GB, free: 3.629 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.3407, allocations: 4 kB / 1.339 GB, free: 3.625 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001627/0.3409, allocations: 29.22 kB / 1.339 GB, free: 3.594 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/0.3411, allocations: 51.91 kB / 1.339 GB, free: 3.543 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001178/0.3422, allocations: 1.318 MB / 1.34 GB, free: 2.113 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001866/0.3424, allocations: 31.83 kB / 1.34 GB, free: 2.082 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.3424, allocations: 19.94 kB / 1.34 GB, free: 2.062 MB / 1.029 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.0001746/0.3426, allocations: 169.8 kB / 1.341 GB, free: 1.887 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.747e-05/0.3427, allocations: 23.86 kB / 1.341 GB, free: 1.863 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.949e-05/0.3427, allocations: 29.7 kB / 1.341 GB, free: 1.832 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3427, allocations: 4 kB / 1.341 GB, free: 1.828 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.738e-06/0.3427, allocations: 0 / 1.341 GB, free: 1.828 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.3427, allocations: 0 / 1.341 GB, free: 1.828 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009376/0.3437, allocations: 0.6007 MB / 1.341 GB, free: 1.156 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3437, allocations: 4.188 kB / 1.341 GB, free: 1.152 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.858e-05/0.3438, allocations: 31.92 kB / 1.341 GB, free: 1.121 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.603e-05/0.3439, allocations: 24.78 kB / 1.341 GB, free: 1.094 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.3439, allocations: 8 kB / 1.341 GB, free: 1.086 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/0.3449, allocations: 1.295 MB / 1.343 GB, free: 15.68 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3449, allocations: 4.156 kB / 1.343 GB, free: 15.68 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003614/0.3453, allocations: 325.1 kB / 1.343 GB, free: 15.32 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 9.828e-05/0.3454, allocations: 39.83 kB / 1.343 GB, free: 15.28 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.989e-05/0.3454, allocations: 4 kB / 1.343 GB, free: 15.28 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.3456, allocations: 8 kB / 1.343 GB, free: 15.27 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.323e-05/0.3456, allocations: 19.91 kB / 1.343 GB, free: 15.25 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-05/0.3456, allocations: 8 kB / 1.343 GB, free: 15.24 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001975/0.3458, allocations: 197.1 kB / 1.343 GB, free: 15.05 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3458, allocations: 0 / 1.343 GB, free: 15.05 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004094/0.3462, allocations: 79.83 kB / 1.343 GB, free: 14.97 MB / 1.045 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.0006901/0.3469, allocations: 0.8508 MB / 1.344 GB, free: 14.07 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004642/0.3474, allocations: 265.2 kB / 1.344 GB, free: 13.8 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3474, allocations: 4.062 kB / 1.344 GB, free: 13.8 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0002214/0.3476, allocations: 178.6 kB / 1.345 GB, free: 13.61 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004608/0.3481, allocations: 64.69 kB / 1.345 GB, free: 13.55 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003218/0.3513, allocations: 2.726 MB / 1.347 GB, free: 10.63 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001976/0.3515, allocations: 186.1 kB / 1.347 GB, free: 10.43 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001426/0.3516, allocations: 46.25 kB / 1.347 GB, free: 10.39 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/0.3518, allocations: 83.41 kB / 1.348 GB, free: 10.31 MB / 1.045 GB Notification: Performance of SimCode: time 5.61e-07/0.3518, allocations: 0 / 1.348 GB, free: 10.31 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03645/0.3882, allocations: 6.128 MB / 1.354 GB, free: 4.375 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.04, allocations: 8.625 kB / 1.354 GB, free: 4.371 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable sen.I in file Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv. Warning: Get data of variable sen.I from file Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv failed! Error: Could not read variable sen1.I in file Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv. Warning: Get data of variable sen1.I from file Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.83514183340594]