Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001205/0.001205, allocations: 110.1 kB / 19.73 MB, free: 2.242 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.001476/0.001476, allocations: 218.2 kB / 23.05 MB, free: 5.074 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.46/1.46, allocations: 230.6 MB / 256.8 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.387/3.387, allocations: 0.5002 GB / 0.8061 GB, free: 26.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="cs",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.002032/0.002032, allocations: 61.56 kB / 1.171 GB, free: 19.88 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4026/0.4046, allocations: 179 MB / 1.345 GB, free: 0.5664 MB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.00714/0.4118, allocations: 3.991 MB / 1.349 GB, free: 12.55 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.003376/0.4152, allocations: 1.85 MB / 1.351 GB, free: 10.7 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002486/0.4154, allocations: 7.938 kB / 1.351 GB, free: 10.69 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001587/0.417, allocations: 0.5032 MB / 1.352 GB, free: 10.18 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0006351/0.4176, allocations: 226.9 kB / 1.352 GB, free: 9.961 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006304/0.4183, allocations: 214.1 kB / 1.352 GB, free: 9.754 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000652/0.4189, allocations: 482.1 kB / 1.352 GB, free: 9.281 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005631/0.4195, allocations: 297.4 kB / 1.353 GB, free: 8.984 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003122/0.4198, allocations: 199.3 kB / 1.353 GB, free: 8.789 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004989/0.4203, allocations: 231.2 kB / 1.353 GB, free: 8.562 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.177e-05/0.4203, allocations: 28 kB / 1.353 GB, free: 8.535 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005477/0.4209, allocations: 251.4 kB / 1.353 GB, free: 8.289 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001488/0.421, allocations: 127.6 kB / 1.353 GB, free: 8.164 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002054/0.4212, allocations: 167.2 kB / 1.354 GB, free: 8 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0007541/0.422, allocations: 0.502 MB / 1.354 GB, free: 7.496 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.422, allocations: 0 / 1.354 GB, free: 7.496 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.633e-06/0.422, allocations: 0 / 1.354 GB, free: 7.496 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.353e-06/0.422, allocations: 0 / 1.354 GB, free: 7.496 MB / 1.045 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.001211/0.4232, allocations: 0.5713 MB / 1.355 GB, free: 6.895 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.4233, allocations: 8.031 kB / 1.355 GB, free: 6.887 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.759e-05/0.4233, allocations: 16.78 kB / 1.355 GB, free: 6.871 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.149e-05/0.4234, allocations: 74.7 kB / 1.355 GB, free: 6.789 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000974/0.4244, allocations: 140.5 kB / 1.355 GB, free: 6.652 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000434/0.4248, allocations: 229.9 kB / 1.355 GB, free: 6.402 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.4248, allocations: 21.03 kB / 1.355 GB, free: 6.383 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.117e-05/0.4249, allocations: 28.38 kB / 1.355 GB, free: 6.355 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007551/0.4256, allocations: 471.4 kB / 1.356 GB, free: 5.859 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.4256, allocations: 4 kB / 1.356 GB, free: 5.855 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.806e-05/0.4257, allocations: 12 kB / 1.356 GB, free: 5.844 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-05/0.4257, allocations: 24.64 kB / 1.356 GB, free: 5.816 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005309/0.4263, allocations: 326.3 kB / 1.356 GB, free: 5.5 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002572/0.4288, allocations: 2.151 MB / 1.358 GB, free: 3.145 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003866/0.4292, allocations: 162.7 kB / 1.358 GB, free: 2.977 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000257/0.4295, allocations: 92.81 kB / 1.358 GB, free: 2.883 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.538e-05/0.4295, allocations: 0 / 1.358 GB, free: 2.883 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.068e-05/0.4295, allocations: 50.48 kB / 1.358 GB, free: 2.824 MB / 1.045 GB Notification: Performance of pre-optimization done (n=14): time 1.754e-06/0.4296, allocations: 0 / 1.358 GB, free: 2.824 MB / 1.045 GB Notification: Performance of matching and sorting (n=14): time 0.0006676/0.4302, allocations: 214.3 kB / 1.359 GB, free: 2.605 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.802e-05/0.4303, allocations: 55.41 kB / 1.359 GB, free: 2.539 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003521/0.4306, allocations: 265.9 kB / 1.359 GB, free: 2.27 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.4306, allocations: 33.7 kB / 1.359 GB, free: 2.23 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001752/0.4308, allocations: 216.2 kB / 1.359 GB, free: 2.012 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.65e-05/0.4309, allocations: 47.62 kB / 1.359 GB, free: 1.965 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.255e-05/0.431, allocations: 49.89 kB / 1.359 GB, free: 1.906 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001815/0.4311, allocations: 338.8 kB / 1.36 GB, free: 1.566 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.4313, allocations: 56.44 kB / 1.36 GB, free: 1.512 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/0.4314, allocations: 141.5 kB / 1.36 GB, free: 1.336 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003071/0.4318, allocations: 234 kB / 1.36 GB, free: 1.07 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.4318, allocations: 0 / 1.36 GB, free: 1.07 MB / 1.045 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004535/0.4322, allocations: 262 kB / 1.36 GB, free: 0.8047 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.4322, allocations: 8 kB / 1.36 GB, free: 0.7969 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.4322, allocations: 4.375 kB / 1.36 GB, free: 0.793 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001802/0.4324, allocations: 28.84 kB / 1.36 GB, free: 0.7617 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001877/0.4326, allocations: 51.86 kB / 1.36 GB, free: 0.7109 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001303/0.4339, allocations: 1.315 MB / 1.362 GB, free: 15.28 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001754/0.4341, allocations: 23.78 kB / 1.362 GB, free: 15.26 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/0.4341, allocations: 16 kB / 1.362 GB, free: 15.24 MB / 1.061 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.0002099/0.4343, allocations: 169.7 kB / 1.362 GB, free: 15.07 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.43e-05/0.4344, allocations: 27.86 kB / 1.362 GB, free: 15.04 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.907e-05/0.4344, allocations: 29.86 kB / 1.362 GB, free: 15.01 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.4344, allocations: 7.938 kB / 1.362 GB, free: 15 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.4344, allocations: 0 / 1.362 GB, free: 15 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.4344, allocations: 3.984 kB / 1.362 GB, free: 15 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.4355, allocations: 0.6704 MB / 1.362 GB, free: 14.25 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.4355, allocations: 0 / 1.362 GB, free: 14.25 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.818e-05/0.4356, allocations: 23.94 kB / 1.363 GB, free: 14.22 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.895e-05/0.4357, allocations: 28.83 kB / 1.363 GB, free: 14.19 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.4357, allocations: 0 / 1.363 GB, free: 14.19 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0013/0.437, allocations: 1.319 MB / 1.364 GB, free: 12.76 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.437, allocations: 8.094 kB / 1.364 GB, free: 12.75 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004679/0.4374, allocations: 317.2 kB / 1.364 GB, free: 12.41 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.173e-05/0.4375, allocations: 35.78 kB / 1.364 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.451e-05/0.4376, allocations: 15.92 kB / 1.364 GB, free: 12.36 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.4377, allocations: 11.94 kB / 1.364 GB, free: 12.34 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.684e-05/0.4378, allocations: 11.98 kB / 1.364 GB, free: 12.33 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.082e-05/0.4378, allocations: 4 kB / 1.364 GB, free: 12.33 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002152/0.438, allocations: 193.2 kB / 1.364 GB, free: 12.14 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.438, allocations: 0 / 1.364 GB, free: 12.14 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004348/0.4384, allocations: 83.84 kB / 1.364 GB, free: 12.06 MB / 1.061 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.0009551/0.4394, allocations: 0.853 MB / 1.365 GB, free: 11.16 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005396/0.4399, allocations: 262.8 kB / 1.366 GB, free: 10.89 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/0.4399, allocations: 4 kB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000248/0.4402, allocations: 178.5 kB / 1.366 GB, free: 10.7 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005094/0.4407, allocations: 67.55 kB / 1.366 GB, free: 10.64 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003554/0.4443, allocations: 2.735 MB / 1.368 GB, free: 7.711 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004824/0.4447, allocations: 0.787 MB / 1.369 GB, free: 6.898 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001606/0.4449, allocations: 46.25 kB / 1.369 GB, free: 6.855 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001401/0.445, allocations: 83.41 kB / 1.369 GB, free: 6.773 MB / 1.061 GB Notification: Performance of SimCode: time 8.22e-07/0.445, allocations: 0 / 1.369 GB, free: 6.773 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03744/0.4825, allocations: 5.641 MB / 1.375 GB, free: 1.305 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.46, allocations: 7.672 kB / 1.375 GB, free: 1.301 MB / 1.061 GB " [Timeout remaining time 287] (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 19.583492597041186]