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.00151/0.00151, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001443/0.001443, allocations: 216.8 kB / 23.03 MB, free: 4.949 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.487/1.487, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.342/3.342, allocations: 0.5003 GB / 0.8062 GB, free: 28.31 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.002028/0.002028, allocations: 61.42 kB / 1.17 GB, free: 19.58 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.3545, allocations: 179 MB / 1.345 GB, free: 15.97 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006514/0.361, allocations: 3.78 MB / 1.349 GB, free: 12.17 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.003413/0.3645, allocations: 1.702 MB / 1.351 GB, free: 10.46 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002031/0.3647, allocations: 11.88 kB / 1.351 GB, free: 10.45 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001545/0.3662, allocations: 498.1 kB / 1.351 GB, free: 9.961 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0005419/0.3667, allocations: 222.9 kB / 1.351 GB, free: 9.742 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005455/0.3673, allocations: 222.3 kB / 1.352 GB, free: 9.527 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0006093/0.3679, allocations: 470.2 kB / 1.352 GB, free: 9.066 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000561/0.3685, allocations: 301.3 kB / 1.352 GB, free: 8.766 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002611/0.3687, allocations: 199.3 kB / 1.352 GB, free: 8.57 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004584/0.3692, allocations: 235.2 kB / 1.353 GB, free: 8.34 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.046e-05/0.3692, allocations: 28 kB / 1.353 GB, free: 8.312 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004281/0.3697, allocations: 219.5 kB / 1.353 GB, free: 8.098 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.3698, allocations: 131.6 kB / 1.353 GB, free: 7.969 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001798/0.37, allocations: 147.3 kB / 1.353 GB, free: 7.824 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0007072/0.3707, allocations: 0.502 MB / 1.354 GB, free: 7.32 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3707, allocations: 0 / 1.354 GB, free: 7.32 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.462e-06/0.3707, allocations: 3.938 kB / 1.354 GB, free: 7.316 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.346e-06/0.3707, allocations: 0 / 1.354 GB, free: 7.316 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.001054/0.3718, allocations: 0.5558 MB / 1.354 GB, free: 6.73 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.3718, allocations: 16.03 kB / 1.354 GB, free: 6.715 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.926e-05/0.3718, allocations: 8.844 kB / 1.354 GB, free: 6.707 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.984e-05/0.3719, allocations: 74.64 kB / 1.354 GB, free: 6.625 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009303/0.3728, allocations: 136.6 kB / 1.354 GB, free: 6.492 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004194/0.3732, allocations: 237.9 kB / 1.355 GB, free: 6.234 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.3733, allocations: 25.02 kB / 1.355 GB, free: 6.211 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.131e-05/0.3733, allocations: 28.38 kB / 1.355 GB, free: 6.184 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008314/0.3742, allocations: 0.5781 MB / 1.355 GB, free: 5.539 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.3742, allocations: 0 / 1.355 GB, free: 5.539 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.785e-05/0.3742, allocations: 15.94 kB / 1.355 GB, free: 5.523 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.584e-05/0.3743, allocations: 32.62 kB / 1.355 GB, free: 5.488 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005141/0.3748, allocations: 322.3 kB / 1.356 GB, free: 5.176 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002096/0.3769, allocations: 1.579 MB / 1.357 GB, free: 3.516 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003508/0.3772, allocations: 158.7 kB / 1.357 GB, free: 3.352 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000268/0.3775, allocations: 100.8 kB / 1.357 GB, free: 3.25 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.236e-05/0.3775, allocations: 4 kB / 1.357 GB, free: 3.246 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.3775, allocations: 38.55 kB / 1.357 GB, free: 3.199 MB / 1.045 GB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.3775, allocations: 0 / 1.357 GB, free: 3.199 MB / 1.045 GB Notification: Performance of matching and sorting (n=14): time 0.0005816/0.3781, allocations: 218.6 kB / 1.358 GB, free: 2.977 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.232e-05/0.3782, allocations: 55.34 kB / 1.358 GB, free: 2.91 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003108/0.3785, allocations: 265.9 kB / 1.358 GB, free: 2.641 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.933e-05/0.3785, allocations: 33.7 kB / 1.358 GB, free: 2.602 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.3787, allocations: 216.2 kB / 1.358 GB, free: 2.383 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.474e-05/0.3787, allocations: 47.64 kB / 1.358 GB, free: 2.336 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.254e-05/0.3788, allocations: 45.89 kB / 1.358 GB, free: 2.281 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.379, allocations: 342.8 kB / 1.359 GB, free: 1.938 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.937e-05/0.3791, allocations: 52.5 kB / 1.359 GB, free: 1.887 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001795/0.3792, allocations: 149.2 kB / 1.359 GB, free: 1.703 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002904/0.3795, allocations: 218.9 kB / 1.359 GB, free: 1.449 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3795, allocations: 0 / 1.359 GB, free: 1.449 MB / 1.045 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004578/0.38, allocations: 264.9 kB / 1.359 GB, free: 1.184 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.38, allocations: 11.98 kB / 1.359 GB, free: 1.172 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.38, allocations: 4 kB / 1.359 GB, free: 1.168 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001571/0.3802, allocations: 28.83 kB / 1.359 GB, free: 1.137 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001957/0.3804, allocations: 51.86 kB / 1.359 GB, free: 1.086 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001316/0.3817, allocations: 1.307 MB / 1.361 GB, free: 15.66 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000175/0.3819, allocations: 27.78 kB / 1.361 GB, free: 15.64 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/0.3819, allocations: 15.98 kB / 1.361 GB, free: 15.62 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.0001879/0.3821, allocations: 165.6 kB / 1.361 GB, free: 15.45 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.612e-05/0.3821, allocations: 31.8 kB / 1.361 GB, free: 15.42 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.13e-05/0.3822, allocations: 25.78 kB / 1.361 GB, free: 15.39 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3822, allocations: 128 / 1.361 GB, free: 15.39 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.3822, allocations: 8 kB / 1.361 GB, free: 15.39 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.3822, allocations: 3.984 kB / 1.361 GB, free: 15.38 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009368/0.3831, allocations: 0.6008 MB / 1.362 GB, free: 14.71 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.3831, allocations: 0 / 1.362 GB, free: 14.71 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.783e-05/0.3832, allocations: 27.92 kB / 1.362 GB, free: 14.68 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-05/0.3833, allocations: 25.03 kB / 1.362 GB, free: 14.66 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.3833, allocations: 8 kB / 1.362 GB, free: 14.65 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00112/0.3844, allocations: 1.314 MB / 1.363 GB, free: 13.22 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.3844, allocations: 4.031 kB / 1.363 GB, free: 13.22 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003937/0.3848, allocations: 317.2 kB / 1.363 GB, free: 12.87 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 8.862e-05/0.3849, allocations: 47.89 kB / 1.363 GB, free: 12.82 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.867e-05/0.385, allocations: 4 kB / 1.363 GB, free: 12.82 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.3851, allocations: 19.92 kB / 1.363 GB, free: 12.8 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.562e-05/0.3852, allocations: 15.92 kB / 1.363 GB, free: 12.79 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.3852, allocations: 4 kB / 1.363 GB, free: 12.78 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002163/0.3854, allocations: 189.2 kB / 1.363 GB, free: 12.6 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3854, allocations: 0 / 1.363 GB, free: 12.6 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004029/0.3858, allocations: 75.89 kB / 1.364 GB, free: 12.52 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.0007017/0.3865, allocations: 0.8508 MB / 1.364 GB, free: 11.62 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004756/0.387, allocations: 266.4 kB / 1.365 GB, free: 11.35 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.387, allocations: 0 / 1.365 GB, free: 11.35 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002314/0.3872, allocations: 179.7 kB / 1.365 GB, free: 11.16 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004765/0.3877, allocations: 67.83 kB / 1.365 GB, free: 11.1 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00353/0.3912, allocations: 2.737 MB / 1.367 GB, free: 8.172 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001963/0.3914, allocations: 186.1 kB / 1.368 GB, free: 7.973 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001462/0.3916, allocations: 42.27 kB / 1.368 GB, free: 7.934 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.3917, allocations: 79.41 kB / 1.368 GB, free: 7.855 MB / 1.061 GB Notification: Performance of SimCode: time 7.01e-07/0.3917, allocations: 0 / 1.368 GB, free: 7.855 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03144/0.4231, allocations: 5.832 MB / 1.373 GB, free: 2.234 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/12.31, allocations: 15.67 kB / 1.373 GB, free: 2.223 MB / 1.061 GB " [Timeout remaining time 288] (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.31495304906275]