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.0008034/0.0008034, allocations: 80.44 kB / 19.17 MB, free: 0.7344 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.0009427/0.0009427, allocations: 165.9 kB / 22.45 MB, free: 2.098 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.8615/0.8615, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.669/1.669, allocations: 377.8 MB / 0.6221 GB, free: 8.668 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.132e-06/1.132e-06, allocations: 0 / 0.9809 GB, free: 2.605 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.143e-05/1.256e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.602 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.003496/0.003509, allocations: 3.742 MB / 0.9846 GB, free: 14.84 MB / 0.948 GB Notification: Performance of NFInst.instExpressions: time 0.001685/0.005194, allocations: 1.702 MB / 0.9863 GB, free: 13.13 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.005317, allocations: 11.94 kB / 0.9863 GB, free: 13.12 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0007858/0.006103, allocations: 494 kB / 0.9867 GB, free: 12.64 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.000303/0.006406, allocations: 234.6 kB / 0.987 GB, free: 12.41 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002674/0.006673, allocations: 219.2 kB / 0.9872 GB, free: 12.19 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0003385/0.007012, allocations: 486.2 kB / 0.9876 GB, free: 11.71 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003546/0.007367, allocations: 293.4 kB / 0.9879 GB, free: 11.43 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001961/0.007563, allocations: 275.3 kB / 0.9882 GB, free: 11.16 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002917/0.007854, allocations: 195.5 kB / 0.9884 GB, free: 10.96 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 3.294e-05/0.007887, allocations: 28 kB / 0.9884 GB, free: 10.94 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002156/0.008103, allocations: 219.4 kB / 0.9886 GB, free: 10.72 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 9.696e-05/0.0082, allocations: 139.5 kB / 0.9887 GB, free: 10.59 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 9.138e-05/0.008291, allocations: 119.7 kB / 0.9888 GB, free: 10.47 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.000558/0.008849, allocations: 0.5179 MB / 0.9894 GB, free: 9.949 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.008852, allocations: 0 / 0.9894 GB, free: 9.949 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.313e-06/0.008853, allocations: 0 / 0.9894 GB, free: 9.949 MB / 0.948 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.008859, allocations: 0 / 0.9894 GB, free: 9.949 MB / 0.948 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.0006512/0.00951, allocations: 0.5635 MB / 0.9899 GB, free: 9.355 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.009547, allocations: 8.031 kB / 0.9899 GB, free: 9.348 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.334e-05/0.009601, allocations: 66.72 kB / 0.99 GB, free: 9.273 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004578/0.01006, allocations: 140.6 kB / 0.9901 GB, free: 9.137 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002571/0.01032, allocations: 229.7 kB / 0.9903 GB, free: 8.887 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.01033, allocations: 21.03 kB / 0.9903 GB, free: 8.867 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.791e-05/0.01036, allocations: 28.36 kB / 0.9904 GB, free: 8.84 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004545/0.01082, allocations: 0.5864 MB / 0.9909 GB, free: 8.184 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.01083, allocations: 192 / 0.9909 GB, free: 8.184 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.324e-05/0.01085, allocations: 24.05 kB / 0.991 GB, free: 8.16 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.189e-05/0.01088, allocations: 24.64 kB / 0.991 GB, free: 8.137 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003103/0.01119, allocations: 322.3 kB / 0.9913 GB, free: 7.82 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.01234, allocations: 1.575 MB / 0.9928 GB, free: 6.164 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002294/0.01257, allocations: 162.7 kB / 0.993 GB, free: 5.996 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001474/0.01271, allocations: 96.73 kB / 0.9931 GB, free: 5.898 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 8.767e-06/0.01272, allocations: 4 kB / 0.9931 GB, free: 5.895 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.786e-05/0.01274, allocations: 34.56 kB / 0.9931 GB, free: 5.852 MB / 0.948 GB Notification: Performance of pre-optimization done (n=14): time 1.383e-06/0.01274, allocations: 4 kB / 0.9931 GB, free: 5.848 MB / 0.948 GB Notification: Performance of matching and sorting (n=14): time 0.0003702/0.01311, allocations: 226.5 kB / 0.9933 GB, free: 5.617 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.627e-05/0.01314, allocations: 59.39 kB / 0.9934 GB, free: 5.547 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001813/0.01332, allocations: 269.8 kB / 0.9937 GB, free: 5.281 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.01333, allocations: 29.7 kB / 0.9937 GB, free: 5.246 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 8.663e-05/0.01342, allocations: 208.3 kB / 0.9939 GB, free: 5.039 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.356e-05/0.01344, allocations: 47.53 kB / 0.9939 GB, free: 4.992 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.136e-05/0.0135, allocations: 53.89 kB / 0.994 GB, free: 4.93 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.054e-05/0.01358, allocations: 338.8 kB / 0.9943 GB, free: 4.59 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.707e-05/0.01364, allocations: 60.44 kB / 0.9944 GB, free: 4.531 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.01374, allocations: 148.3 kB / 0.9945 GB, free: 4.352 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001732/0.01392, allocations: 218 kB / 0.9947 GB, free: 4.102 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.01392, allocations: 0 / 0.9947 GB, free: 4.102 MB / 0.948 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002622/0.01418, allocations: 262.1 kB / 0.995 GB, free: 3.836 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.01419, allocations: 4.375 kB / 0.995 GB, free: 3.832 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.0142, allocations: 8 kB / 0.995 GB, free: 3.824 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001196/0.01432, allocations: 28.84 kB / 0.995 GB, free: 3.793 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.01442, allocations: 43.92 kB / 0.995 GB, free: 3.75 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008007/0.01522, allocations: 1.318 MB / 0.9963 GB, free: 2.32 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.032e-05/0.01531, allocations: 35.94 kB / 0.9964 GB, free: 2.285 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.01532, allocations: 16 kB / 0.9964 GB, free: 2.27 MB / 0.948 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.0001031/0.01543, allocations: 169.7 kB / 0.9965 GB, free: 2.094 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.712e-05/0.01545, allocations: 27.8 kB / 0.9966 GB, free: 2.066 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.439e-05/0.01548, allocations: 25.77 kB / 0.9966 GB, free: 2.039 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.01548, allocations: 4 kB / 0.9966 GB, free: 2.035 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.01548, allocations: 0 / 0.9966 GB, free: 2.035 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.01549, allocations: 7.922 kB / 0.9966 GB, free: 2.027 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005339/0.01602, allocations: 0.6085 MB / 0.9972 GB, free: 1.348 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.01602, allocations: 0 / 0.9972 GB, free: 1.348 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.42e-05/0.01607, allocations: 27.92 kB / 0.9972 GB, free: 1.32 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.418e-05/0.01612, allocations: 24.84 kB / 0.9972 GB, free: 1.293 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.01613, allocations: 4 kB / 0.9972 GB, free: 1.289 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005582/0.01669, allocations: 1.311 MB / 0.9985 GB, free: 15.86 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.01669, allocations: 4.031 kB / 0.9985 GB, free: 15.86 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001949/0.01688, allocations: 317.2 kB / 0.9988 GB, free: 15.51 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 4.76e-05/0.01693, allocations: 35.84 kB / 0.9989 GB, free: 15.47 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.01695, allocations: 4 kB / 0.9989 GB, free: 15.47 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.404e-05/0.01703, allocations: 11.98 kB / 0.9989 GB, free: 15.46 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.117e-05/0.01705, allocations: 23.98 kB / 0.9989 GB, free: 15.43 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.276e-06/0.01706, allocations: 8 kB / 0.9989 GB, free: 15.43 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0001094/0.01717, allocations: 189.2 kB / 0.9991 GB, free: 15.24 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.01717, allocations: 4 kB / 0.9991 GB, free: 15.24 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002279/0.0174, allocations: 75.84 kB / 0.9992 GB, free: 15.16 MB / 0.9636 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.000362/0.01776, allocations: 0.8458 MB / 1 GB, free: 14.27 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002846/0.01804, allocations: 266.4 kB / 1 GB, free: 14 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.01805, allocations: 0 / 1 GB, free: 14 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.01815, allocations: 178.5 kB / 1 GB, free: 13.81 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002907/0.01844, allocations: 71.41 kB / 1 GB, free: 13.74 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002023/0.02046, allocations: 2.712 MB / 1.003 GB, free: 10.84 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001184/0.02058, allocations: 178.1 kB / 1.003 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 8.695e-05/0.02067, allocations: 46.25 kB / 1.003 GB, free: 10.6 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.984e-05/0.02075, allocations: 84.47 kB / 1.003 GB, free: 10.52 MB / 0.9636 GB Notification: Performance of SimCode: time 7.41e-07/0.02075, allocations: 4 kB / 1.003 GB, free: 10.52 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01822/0.03897, allocations: 6.242 MB / 1.01 GB, free: 4.496 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.095/7.134, allocations: 6.594 kB / 1.01 GB, free: 4.492 MB / 0.9636 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 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.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.06705618929118]