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.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.0008276/0.0008276, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008619/0.0008619, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8785/0.8785, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.681/1.681, allocations: 359 MB / 0.6037 GB, free: 11.11 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.933e-06/1.933e-06, allocations: 0 / 0.9505 GB, free: 3.516 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.805e-05/1.999e-05, allocations: 9.312 kB / 0.9505 GB, free: 3.508 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005608/0.005628, allocations: 3.742 MB / 0.9541 GB, free: 15.74 MB / 0.9167 GB Notification: Performance of NFInst.instExpressions: time 0.001833/0.007461, allocations: 1.687 MB / 0.9558 GB, free: 14.05 MB / 0.9167 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.007604, allocations: 11.94 kB / 0.9558 GB, free: 14.04 MB / 0.9167 GB Notification: Performance of NFTyping.typeComponents: time 0.000773/0.008377, allocations: 0.4926 MB / 0.9563 GB, free: 13.54 MB / 0.9167 GB Notification: Performance of NFTyping.typeBindings: time 0.0003777/0.008755, allocations: 226.6 kB / 0.9565 GB, free: 13.32 MB / 0.9167 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003653/0.00912, allocations: 219.2 kB / 0.9567 GB, free: 13.11 MB / 0.9167 GB Notification: Performance of NFFlatten.flatten: time 0.0004021/0.009522, allocations: 486.2 kB / 0.9572 GB, free: 12.63 MB / 0.9167 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004231/0.009946, allocations: 293.4 kB / 0.9574 GB, free: 12.34 MB / 0.9167 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002332/0.01018, allocations: 271.4 kB / 0.9577 GB, free: 12.08 MB / 0.9167 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002943/0.01047, allocations: 199.5 kB / 0.9579 GB, free: 11.88 MB / 0.9167 GB Notification: Performance of NFPackage.collectConstants: time 3.318e-05/0.01051, allocations: 28 kB / 0.9579 GB, free: 11.86 MB / 0.9167 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002747/0.01078, allocations: 223.3 kB / 0.9581 GB, free: 11.64 MB / 0.9167 GB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.01089, allocations: 131.6 kB / 0.9583 GB, free: 11.51 MB / 0.9167 GB Notification: Performance of NFVerifyModel.verify: time 9.089e-05/0.01098, allocations: 119.7 kB / 0.9584 GB, free: 11.39 MB / 0.9167 GB Notification: Performance of NFConvertDAE.convert: time 0.0004468/0.01142, allocations: 0.5179 MB / 0.9589 GB, free: 10.87 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.01143, allocations: 0 / 0.9589 GB, free: 10.87 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.283e-06/0.01143, allocations: 7.938 kB / 0.9589 GB, free: 10.86 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 6.091e-06/0.01143, allocations: 0 / 0.9589 GB, free: 10.86 MB / 0.9167 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.0007534/0.01219, allocations: 0.5634 MB / 0.9594 GB, free: 10.27 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.01222, allocations: 12.03 kB / 0.9594 GB, free: 10.26 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.29e-05/0.01228, allocations: 66.72 kB / 0.9595 GB, free: 10.18 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004559/0.01273, allocations: 136.6 kB / 0.9596 GB, free: 10.05 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002705/0.013, allocations: 229.2 kB / 0.9599 GB, free: 9.801 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.01302, allocations: 21.03 kB / 0.9599 GB, free: 9.777 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.814e-05/0.01305, allocations: 28.38 kB / 0.9599 GB, free: 9.75 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004773/0.01352, allocations: 0.5826 MB / 0.9605 GB, free: 9.102 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.01354, allocations: 4.125 kB / 0.9605 GB, free: 9.098 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.116e-05/0.01356, allocations: 20.12 kB / 0.9605 GB, free: 9.078 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.308e-05/0.01359, allocations: 32.62 kB / 0.9605 GB, free: 9.047 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003169/0.01391, allocations: 318.3 kB / 0.9608 GB, free: 8.738 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001263/0.01517, allocations: 1.571 MB / 0.9624 GB, free: 7.082 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002534/0.01542, allocations: 158.7 kB / 0.9625 GB, free: 6.918 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001531/0.01558, allocations: 100.7 kB / 0.9626 GB, free: 6.816 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 8.647e-06/0.01558, allocations: 4 kB / 0.9626 GB, free: 6.812 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.932e-05/0.0156, allocations: 34.56 kB / 0.9627 GB, free: 6.77 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=14): time 1.323e-06/0.01561, allocations: 0 / 0.9627 GB, free: 6.77 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14): time 0.0003827/0.01599, allocations: 230.5 kB / 0.9629 GB, free: 6.535 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.668e-05/0.01601, allocations: 51.41 kB / 0.9629 GB, free: 6.473 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002029/0.01622, allocations: 277.8 kB / 0.9632 GB, free: 6.188 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/0.01623, allocations: 29.7 kB / 0.9632 GB, free: 6.152 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 9.929e-05/0.01633, allocations: 212.2 kB / 0.9634 GB, free: 5.941 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 2.96e-05/0.01636, allocations: 55.58 kB / 0.9635 GB, free: 5.887 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.688e-05/0.01642, allocations: 45.89 kB / 0.9635 GB, free: 5.832 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 8.762e-05/0.01651, allocations: 338.8 kB / 0.9638 GB, free: 5.492 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.664e-05/0.01657, allocations: 52.44 kB / 0.9639 GB, free: 5.441 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001169/0.01669, allocations: 150.8 kB / 0.964 GB, free: 5.258 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001939/0.01688, allocations: 218.9 kB / 0.9642 GB, free: 5.004 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.01689, allocations: 0 / 0.9642 GB, free: 5.004 MB / 0.9167 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002808/0.01717, allocations: 264.8 kB / 0.9645 GB, free: 4.738 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.01718, allocations: 8 kB / 0.9645 GB, free: 4.73 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.01719, allocations: 4 kB / 0.9645 GB, free: 4.727 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001367/0.01733, allocations: 29.22 kB / 0.9645 GB, free: 4.695 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001557/0.01748, allocations: 51.91 kB / 0.9646 GB, free: 4.645 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008236/0.01831, allocations: 1.314 MB / 0.9659 GB, free: 3.219 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.52e-05/0.0184, allocations: 27.78 kB / 0.9659 GB, free: 3.191 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.01841, allocations: 8 kB / 0.9659 GB, free: 3.184 MB / 0.9167 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.0001094/0.01852, allocations: 174.4 kB / 0.9661 GB, free: 3.004 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.946e-05/0.01855, allocations: 27.8 kB / 0.9661 GB, free: 2.977 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.52e-05/0.01858, allocations: 29.77 kB / 0.9661 GB, free: 2.945 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.01858, allocations: 0 / 0.9661 GB, free: 2.945 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.01858, allocations: 4 kB / 0.9661 GB, free: 2.941 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.01859, allocations: 0 / 0.9661 GB, free: 2.941 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006032/0.01919, allocations: 0.6086 MB / 0.9667 GB, free: 2.262 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.01919, allocations: 0 / 0.9667 GB, free: 2.262 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.455e-05/0.01924, allocations: 23.94 kB / 0.9667 GB, free: 2.238 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.99e-05/0.0193, allocations: 24.91 kB / 0.9668 GB, free: 2.211 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.01931, allocations: 7.984 kB / 0.9668 GB, free: 2.203 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007112/0.02002, allocations: 1.314 MB / 0.9681 GB, free: 0.7773 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.02002, allocations: 8.016 kB / 0.9681 GB, free: 0.7695 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000246/0.02027, allocations: 305.2 kB / 0.9684 GB, free: 444 kB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 5.723e-05/0.02032, allocations: 47.77 kB / 0.9684 GB, free: 396 kB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.02034, allocations: 0 / 0.9684 GB, free: 396 kB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.857e-05/0.02043, allocations: 12 kB / 0.9684 GB, free: 384 kB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.166e-05/0.02046, allocations: 15.92 kB / 0.9684 GB, free: 368 kB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.02047, allocations: 11.94 kB / 0.9684 GB, free: 356 kB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001319/0.0206, allocations: 193.3 kB / 0.9686 GB, free: 164 kB / 0.9167 GB Notification: Performance of sort global known variables: time 6e-08/0.0206, allocations: 0 / 0.9686 GB, free: 164 kB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0002757/0.02088, allocations: 75.84 kB / 0.9687 GB, free: 88 kB / 0.9167 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.0004657/0.02134, allocations: 0.8515 MB / 0.9695 GB, free: 15.18 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.0003554/0.0217, allocations: 265.9 kB / 0.9698 GB, free: 14.91 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.0217, allocations: 4 kB / 0.9698 GB, free: 14.91 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0001161/0.02182, allocations: 182.5 kB / 0.97 GB, free: 14.72 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003066/0.02212, allocations: 55.69 kB / 0.97 GB, free: 14.67 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002357/0.02448, allocations: 2.713 MB / 0.9727 GB, free: 11.75 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001229/0.0246, allocations: 186.1 kB / 0.9728 GB, free: 11.55 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.0001051/0.02471, allocations: 46.25 kB / 0.9729 GB, free: 11.51 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.613e-05/0.0248, allocations: 84.47 kB / 0.973 GB, free: 11.43 MB / 0.9323 GB Notification: Performance of SimCode: time 9.32e-07/0.0248, allocations: 0 / 0.973 GB, free: 11.43 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02377/0.04857, allocations: 6.251 MB / 0.9791 GB, free: 5.391 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.291/7.34, allocations: 9.188 kB / 0.9791 GB, free: 5.387 MB / 0.9323 GB " [Timeout remaining time 293] (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) [Timeout 420.0] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv. Warning: Get data of variable sen.I from file Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv failed! Error: Could not read variable sen1.I in file Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv. Warning: Get data of variable sen1.I from file Buildings_11_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.410609965212643]